1*30877f79SAndroid Build Coastguard Worker# Cast module
2*30877f79SAndroid Build Coastguard Worker
3*30877f79SAndroid Build Coastguard WorkerThis module provides a [Player][] implementation that controls a Cast receiver
4*30877f79SAndroid Build Coastguard Workerapp.
5*30877f79SAndroid Build Coastguard Worker
6*30877f79SAndroid Build Coastguard Worker[Player]: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/Player.html
7*30877f79SAndroid Build Coastguard Worker
8*30877f79SAndroid Build Coastguard Worker## Getting the module
9*30877f79SAndroid Build Coastguard Worker
10*30877f79SAndroid Build Coastguard WorkerThe easiest way to get the module is to add it as a gradle dependency:
11*30877f79SAndroid Build Coastguard Worker
12*30877f79SAndroid Build Coastguard Worker```gradle
13*30877f79SAndroid Build Coastguard Workerimplementation 'com.google.android.exoplayer:extension-cast:2.X.X'
14*30877f79SAndroid Build Coastguard Worker```
15*30877f79SAndroid Build Coastguard Worker
16*30877f79SAndroid Build Coastguard Workerwhere `2.X.X` is the version, which must match the version of the other media
17*30877f79SAndroid Build Coastguard Workermodules being used.
18*30877f79SAndroid Build Coastguard Worker
19*30877f79SAndroid Build Coastguard WorkerAlternatively, you can clone this GitHub project and depend on the module
20*30877f79SAndroid Build Coastguard Workerlocally. Instructions for doing this can be found in the [top level README][].
21*30877f79SAndroid Build Coastguard Worker
22*30877f79SAndroid Build Coastguard Worker[top level README]: https://github.com/google/ExoPlayer/blob/release-v2/README.md
23*30877f79SAndroid Build Coastguard Worker
24*30877f79SAndroid Build Coastguard Worker## Using the module
25*30877f79SAndroid Build Coastguard Worker
26*30877f79SAndroid Build Coastguard WorkerCreate a `CastPlayer` and use it to control a Cast receiver app. Since
27*30877f79SAndroid Build Coastguard Worker`CastPlayer` implements the `Player` interface, it can be passed to all media
28*30877f79SAndroid Build Coastguard Workercomponents that accept a `Player`, including the UI components provided by the
29*30877f79SAndroid Build Coastguard WorkerUI module.
30*30877f79SAndroid Build Coastguard Worker
31*30877f79SAndroid Build Coastguard Worker## Links
32*30877f79SAndroid Build Coastguard Worker
33*30877f79SAndroid Build Coastguard Worker*   [Javadoc][]
34*30877f79SAndroid Build Coastguard Worker
35*30877f79SAndroid Build Coastguard Worker[Javadoc]: https://exoplayer.dev/doc/reference/index.html
36