
The blaze BUILD file for the Cronet extension now has three options: Using native bundled Cronet libs, using GMSCore, or using whichever is newer. The GMSCore version is preselected (as it is the smallest), but other variants may be used by uncommenting the respective lines. The API is the same for all cases and the CronetEngine.Builder automatically selects the newest option or falls back to default http. To avoid that apps using this extension need to add a dependency to Cronet themselves, I added a CronetEngineFactory to the Exoplayer extension. Gradle builds can't be supported (as far as I can see), as the GMSCore Cronet version is first party only. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=154812029
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/cronet
directory - Download
cronet_api.jar
,cronet_impl_common_java.jar
,cronet_impl_native_java.jar
and thelibs
directory - Copy the three jar files into the
libs
directory of this extension - Copy the content of the downloaded
libs
directory into thejniLibs
directory of this extension
- In ExoPlayer's
settings.gradle
file, uncomment the Cronet extension