mirror of
https://github.com/samsonjs/media.git
synced 2026-04-06 11:25:46 +00:00
It's currently difficult to use ExoPlayer modules in other gradle projects because they rely on constants and dependencies defined in our own top level gradle file. This change moves the constants into a separate file referenced directly from each module. It also removes the need for the top level gradle file to declare a dependency on com.novoda:bintray-release. This is now only needed if "exoplayerPublishEnabled = true" is specified. Issue: #2851 Issue: #2974 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=160272072 |
||
|---|---|---|
| .. | ||
| src/main | ||
| build.gradle | ||
| README.md | ||
ExoPlayer OkHttp Extension
Description
The OkHttp Extension is an HttpDataSource implementation using Square's OkHttp.
Using the extension
The easiest way to use the extension is to add it as a gradle dependency. You
need to make sure you have the jcenter repository included in the build.gradle
file in the root of your project:
repositories {
jcenter()
}
Next, include the following in your module's build.gradle file:
compile 'com.google.android.exoplayer:extension-okhttp:rX.X.X'
where rX.X.X is the version, which must match the version of the ExoPlayer
library being used.