mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
We want to experiment with a direct executor to avoid thread hops between the network thread and the response handling thread. This change is needed to do so. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161812382 |
||
|---|---|---|
| .. | ||
| jniLibs | ||
| libs | ||
| src | ||
| build.gradle | ||
| README.md | ||
ExoPlayer Cronet Extension
Description
Cronet is Chromium's Networking stack packaged as a library.
The Cronet Extension is an HttpDataSource implementation using Cronet.
Build Instructions
To use this extension you need to clone the ExoPlayer repository and depend on its modules locally. Instructions for doing this can be found in ExoPlayer's top level README. In addition, it's necessary to get the Cronet libraries and enable the extension:
- Find the latest Cronet release here and navigate to its
Release/cronetdirectory - Download
cronet_api.jar,cronet_impl_common_java.jar,cronet_impl_native_java.jarand thelibsdirectory - Copy the three jar files into the
libsdirectory of this extension - Copy the content of the downloaded
libsdirectory into thejniLibsdirectory of this extension
- In your
settings.gradlefile, add the following line before the line that appliescore_settings.gradle:
gradle.ext.exoplayerIncludeCronetExtension = true;