java.lang.Object | |
↳ | com.google.android.gms.cast.MediaStatus |
A class that holds status information about some media. The current MediaStatus
can be
obtained from the RemoteMediaPlayer
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | COMMAND_PAUSE | A flag (bitmask) indicating that a media item can be paused. | |||||||||
long | COMMAND_SEEK | A flag (bitmask) indicating that a media item supports seeking. | |||||||||
long | COMMAND_SET_VOLUME | A flag (bitmask) indicating that a media item's audio volume can be changed. | |||||||||
long | COMMAND_SKIP_BACKWARD | A flag (bitmask) indicating that a media item supports skipping backward. | |||||||||
long | COMMAND_SKIP_FORWARD | A flag (bitmask) indicating that a media item supports skipping forward. | |||||||||
long | COMMAND_TOGGLE_MUTE | A flag (bitmask) indicating that a media item's audio can be muted. | |||||||||
int | IDLE_REASON_CANCELED | Constant indicating that the player is idle because playback has been canceled in response to a STOP command. | |||||||||
int | IDLE_REASON_ERROR | Constant indicating that the player is idle because a playback error has occurred. | |||||||||
int | IDLE_REASON_FINISHED | Constant indicating that the player is idle because playback has finished. | |||||||||
int | IDLE_REASON_INTERRUPTED | Constant indicating that the player is idle because playback has been interrupted by a LOAD command. | |||||||||
int | IDLE_REASON_NONE | Constant indicating that the player currently has no idle reason. | |||||||||
int | PLAYER_STATE_BUFFERING | Constant indicating that the media player is buffering. | |||||||||
int | PLAYER_STATE_IDLE | Constant indicating that the media player is idle. | |||||||||
int | PLAYER_STATE_PAUSED | Constant indicating that the media player is paused. | |||||||||
int | PLAYER_STATE_PLAYING | Constant indicating that the media player is playing. | |||||||||
int | PLAYER_STATE_UNKNOWN | Constant indicating unknown player state. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the list of active track IDs, if any, otherwise an empty array.
| |||||||||||
Returns any custom data that is associated with the media item.
| |||||||||||
Gets the player state idle reason.
| |||||||||||
Returns the
MediaInfo for this item.
| |||||||||||
Gets the current stream playback rate.
| |||||||||||
Gets the current media player state.
| |||||||||||
Returns the current stream position, in milliseconds.
| |||||||||||
Returns the stream's volume.
| |||||||||||
Tests if the stream supports a given control command.
| |||||||||||
Returns the stream's mute state.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
A flag (bitmask) indicating that a media item can be paused.
A flag (bitmask) indicating that a media item supports seeking.
A flag (bitmask) indicating that a media item's audio volume can be changed.
A flag (bitmask) indicating that a media item supports skipping backward.
A flag (bitmask) indicating that a media item supports skipping forward.
A flag (bitmask) indicating that a media item's audio can be muted.
Constant indicating that the player is idle because playback has been canceled in response to a STOP command.
Constant indicating that the player is idle because a playback error has occurred.
Constant indicating that the player is idle because playback has finished.
Constant indicating that the player is idle because playback has been interrupted by a LOAD command.
Constant indicating that the player currently has no idle reason.
Constant indicating that the media player is buffering.
Constant indicating that the media player is idle.
Constant indicating that the media player is paused.
Constant indicating that the media player is playing.
Constant indicating unknown player state.
Returns the list of active track IDs, if any, otherwise an empty array.
Returns any custom data that is associated with the media item.
Gets the player state idle reason. This value is only meaningful if the player state is
in fact PLAYER_STATE_IDLE
.
Gets the current stream playback rate. This will be negative if the stream is seeking backwards, 0 if the stream is paused, 1 if the stream is playing normally, and some other postive value if the stream is seeking forwards.
Gets the current media player state.
Returns the current stream position, in milliseconds.
Returns the stream's volume.
Tests if the stream supports a given control command.
mediaCommand | The media command. |
---|
true
if the command is supported, false
otherwise.
Returns the stream's mute state.