olly 6acf59c4fc Fix Widevine L3 provisioning in V2
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
2016-10-14 10:42:43 +01:00
..
2016-08-31 15:25:31 +01:00
2016-08-31 15:25:31 +01:00
2016-10-14 10:42:43 +01:00
2016-09-02 16:12:55 +01:00
2016-08-31 15:25:31 +01:00

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:
  1. Find the latest Cronet release here and navigate to its Release/cronet directory
  2. Download cronet.jar, cronet_api.jar and the libs directory
  3. Copy the two jar files into the libs directory of this extension
  4. Copy the content of the downloaded libs directory into the jniLibs directory of this extension
  • In ExoPlayer's settings.gradle file, uncomment the Cronet extension