
This ensures the 'use X instead' message is easily visible in the generated HTML for the overriding method. Currently it's not, e.g.: https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/BasePlayer.html#getCurrentWindowIndex() #minor-release PiperOrigin-RevId: 452002224 (cherry picked from commit d711dee003c9f7d8a3f31031b35a4121d0db6f09)
Cast module
This module provides a Player implementation that controls a Cast receiver app.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'com.google.android.exoplayer:extension-cast:2.X.X'
where 2.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.
Using the module
Create a CastPlayer
and use it to control a Cast receiver app. Since
CastPlayer
implements the Player
interface, it can be passed to all media
components that accept a Player
, including the UI components provided by the
UI module.