
1. HttpMediaDrmCallback.executeProvisionRequest needs to specify an empty byte[], else we do a GET instead of a POST. 2. Content-Type should not be set when making the provision request, since there's no body. 3. DataSource implementations must correctly handle a non-null body with zero length. CronetDataSource was not handling this case. DefaultHttpDataSource was, but made a code modification to make it a little clearer. OkHttpDataSource seems to handle the case correctly, and it doens't look like the code can be made clearer. Issue #1925 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136042641
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.jar
,cronet_api.jar
and thelibs
directory - Copy the two 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