Skip to content

Commit

Permalink
Updates for ExoPlayer modularization
Browse files Browse the repository at this point in the history
- Update relevant documentation
- Use individual modules for the demo app. Given it's
  preferable to use them over the full library, and that
  many people probably use the demo app as a starting
  point, we should set the right example even though we
  currently need to include all of them.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=153454898
  • Loading branch information
ojw28 committed Apr 18, 2017
1 parent 8be85d4 commit 3c49044
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
34 changes: 28 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,39 @@ repositories {
}
```

Next, include the following in your module's `build.gradle` file:
Next add a gradle compile dependency to the `build.gradle` file of your app
module. The following will add a dependency to the full ExoPlayer library:

```gradle
compile 'com.google.android.exoplayer:exoplayer:rX.X.X'
compile 'com.google.android.exoplayer:exoplayer:r2.X.X'
```

where `rX.X.X` is the your preferred version. For the latest version, see the
project's [Releases][]. For more details, see the project on [Bintray][].
where `r2.X.X` is your preferred version. Alternatively, you can depend on only
the library modules that you actually need. For example the following will add
dependencies on the Core, DASH and UI library modules, as might be required for
an app that plays DASH content:

[Releases]: https://github.com/google/ExoPlayer/releases
[Bintray]: https://bintray.com/google/exoplayer/exoplayer/view
```gradle
compile 'com.google.android.exoplayer:exoplayer-core:r2.X.X'
compile 'com.google.android.exoplayer:exoplayer-dash:r2.X.X'
compile 'com.google.android.exoplayer:exoplayer-ui:r2.X.X'
```

The available modules are listed below. Adding a dependency to the full
ExoPlayer library is equivalent to adding dependencies on all of the modules
individually.

* `exoplayer-core`: Core functionality (required).
* `exoplayer-dash`: Support for DASH content.
* `exoplayer-hls`: Support for HLS content.
* `exoplayer-smoothstreaming`: Support for SmoothStreaming content.
* `exoplayer-ui`: UI components and resources for use with ExoPlayer.

For more details, see the project on [Bintray][]. For information about the
latest versions, see the [Release notes][].

[Bintray]: https://bintray.com/google/exoplayer
[Release notes]: https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md

## Developing ExoPlayer ##

Expand Down
6 changes: 5 additions & 1 deletion demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ android {
}

dependencies {
compile project(':library')
compile project(':library-core')
compile project(':library-dash')
compile project(':library-hls')
compile project(':library-smoothstreaming')
compile project(':library-ui')
withExtensionsCompile project(path: ':extension-ffmpeg')
withExtensionsCompile project(path: ':extension-flac')
withExtensionsCompile project(path: ':extension-opus')
Expand Down
2 changes: 1 addition & 1 deletion testutils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ android {
}

dependencies {
compile project(':library')
compile project(':library-core')
compile 'org.mockito:mockito-core:' + mockitoVersion
}

0 comments on commit 3c49044

Please sign in to comment.