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 TypeMethodDescriptionGets the currently selected audio track.Gets the list of all available audio tracks.Gets the currently selected subtitle track.Gets the list of all available subtitle tracks.Gets the list of available video qualities for the current video track.Gets the currently selected video quality.Gets the currently selected video track.Gets the list of all available video tracks.
-
Method Details
-
getAudioTracks
Gets the list of all available audio tracks.- Returns:
- A list of the currently registered audio tracks
-
getAudioTrack
Gets the currently selected audio track.- Returns:
- The currently active audio track.
-
getVideoTracks
Gets the list of all available video tracks.- Returns:
- A list of the currently registered video tracks
-
getVideoTrack
Gets the currently selected video track.- Returns:
- The currently active video track.
-
getVideoQualities
Gets the list of available video qualities for the current video track.- Returns:
- A list of the currently available video qualities
-
getVideoQuality
Gets the currently selected video quality.- Returns:
- The currently active video quality track or null if ABR is active
-
getSubtitleTracks
Gets the list of all available subtitle tracks.- Returns:
- A list of the currently registered subtitles
-
getSubtitleTrack
Gets the currently selected subtitle track.- Returns:
- The currently active subtitle track or null if no subtitle track is active
-