cchiappini 4df63314d4 Create Cronet extension in v2
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=131393395
2016-08-31 15:25:31 +01:00

32 lines
1.0 KiB
Markdown

# ExoPlayer Cronet Extension #
## Description ##
[Cronet][] is Chromium's Networking stack packaged as a library.
The Cronet Extension is an [HttpDataSource][] implementation using [Cronet][].
[HttpDataSource]: https://google.github.io/ExoPlayer/doc/reference/com/google/android/exoplayer/upstream/HttpDataSource.html
[Cronet]: https://chromium.googlesource.com/chromium/src/+/master/components/cronet?autodive=0%2F%2F
## 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
1. Download `cronet.jar`, `cronet_api.jar` and the `libs` directory
1. Copy the two jar files into the `libs` directory of this extension
1. 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
[here]: https://console.cloud.google.com/storage/browser/chromium-cronet/android