mirror of
https://github.com/androidx/media.git
synced 2025-05-12 10:09:55 +08:00

1. Change package name (rm "datasource") 2. Require injection of OkHttpClient through all constructors, and remove allowCrossProtocolRedirect/connectTimeout/readTimeout constructor arguments. The client should be configured with these prior to injection. 3. Fix code style to be consistent with the project. 4. Simplify call to get contentLength. I'm pretty sure okhttp returns the correct value when gzip is enabled, so there's no need to check this in the data source. 5. Misc cleanups.
ExoPlayer OkHttp Extension
Description
The OkHttp Extension is a HTTP Data Source implementation using Square's OkHttp.