Package com.castlabs.sdk.googlecast
Class RemotePlayerState
java.lang.Object
com.castlabs.sdk.googlecast.RemotePlayerState
This class represents the remote player state.
You can get an instance of it with the
GoogleCastManager.getCurrentPlayerState(com.google.android.gms.cast.framework.SessionManager)
method.
It provides methods to get the track list of any type (audio, subtitles, qualities) as well as
the currently selected one.- Since:
- 4.0.1
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
getAudioTracks
- Returns:
- A list of the currently registered audio tracks
-
getAudioTrack
- Returns:
- The currently active audio track.
-
getVideoTracks
- Returns:
- A list of the currently registered video tracks
-
getVideoTrack
- Returns:
- The currently active video track.
-
getVideoQualities
- Returns:
- A list of the currently available video qualities
-
getVideoQuality
- Returns:
- The currently active video quality track or null if ABR is active
-
getSubtitleTracks
- Returns:
- A list of the currently registered subtitles
-
getSubtitleTrack
- Returns:
- The currently active subtitle track or null if no subtitle track is active
-