Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | H | 25-Apr-2025 | - | 4,352 | 3,353 | |
README.md | H A D | 25-Apr-2025 | 1 KiB | 36 | 22 | |
build.gradle | H A D | 25-Apr-2025 | 1.5 KiB | 37 | 33 |
README.md
1# Cast module 2 3This module provides a [Player][] implementation that controls a Cast receiver 4app. 5 6[Player]: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Player.html 7 8## Getting the module 9 10The easiest way to get the module is to add it as a gradle dependency: 11 12```gradle 13implementation 'com.google.android.exoplayer:extension-cast:2.X.X' 14``` 15 16where `2.X.X` is the version, which must match the version of the other media 17modules being used. 18 19Alternatively, you can clone this GitHub project and depend on the module 20locally. Instructions for doing this can be found in the [top level README][]. 21 22[top level README]: https://github.com/google/ExoPlayer/blob/release-v2/README.md 23 24## Using the module 25 26Create a `CastPlayer` and use it to control a Cast receiver app. Since 27`CastPlayer` implements the `Player` interface, it can be passed to all media 28components that accept a `Player`, including the UI components provided by the 29UI module. 30 31## Links 32 33* [Javadoc][] 34 35[Javadoc]: https://exoplayer.dev/doc/reference/index.html 36