mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
When using the CronetEngine.Builder class, it automatically selects the Cronet version preferring higher version codes and falling back to a Java Http implementation if no native or GMSCore version is available. This version selection has now been moved into the CronetEngineFactory class to always prefer GMSCore over natively bundled versions. We also ignore the Cronet internal Java implementation. Instead, users of CronetDataSourceFactory can provide their own fallback factory. If none is provided, we use DefaultHttpDataSourceFactory. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154821040 |
||
|---|---|---|
| .. | ||
| 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
- Checkout ExoPlayer along with Extensions:
git clone https://github.com/google/ExoPlayer.git
- Get the Cronet libraries:
- 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 ExoPlayer's
settings.gradlefile, uncomment the Cronet extension