cast.framework.messages. MediaStatus
Represents the status of a media session.
Constructor
MediaStatus
new MediaStatus()
Properties
activeTrackIds
(non-null Array of number or undefined)
List of IDs corresponding to the active tracks.
breakStatus
(non-null cast.framework.messages.BreakStatus or undefined)
Status of break, if receiver is playing break. This field will be defined only when receiver is playing break.
currentItemId
(number or undefined)
ID of this media item (the item that originated the status change).
currentTime
number
The current playback position.
customData
(non-null Object or undefined)
Application-specific media status data.
extendedStatus
(non-null cast.framework.messages.ExtendedMediaStatus or undefined)
Extended media status information.
idleReason
(non-null cast.framework.messages.IdleReason or undefined)
If the state is IDLE, the reason the player went to IDLE state.
items
(non-null Array of non-null cast.framework.messages.QueueItem or undefined)
List of media queue items.
liveSeekableRange
(non-null cast.framework.messages.LiveSeekableRange or undefined)
Seekable range of a live or event stream. It uses relative media time in seconds. It will be undefined for VOD streams.
loadingItemId
(number or undefined)
ID of the media Item currently loading. If there is no item being loaded, it will be undefined.
media
(non-null cast.framework.messages.MediaInformation or undefined)
The media information.
mediaSessionId
number
Unique id for the session.
playbackRate
number
The playback rate.
playerState
non-null cast.framework.messages.PlayerState
The playback state.
preloadedItemId
(number or undefined)
ID of the next Item, only available if it has been preloaded. Media items can be preloaded and cached temporarily in memory, so when they are loaded later on, the process is faster (as the media does not have to be fetched from the network).
queueData
(non-null cast.framework.messages.QueueData or undefined)
Queue data.
repeatMode
(non-null cast.framework.messages.RepeatMode or undefined)
The behavior of the queue when all items have been played.
supportedMediaCommands
number
The commands supported by this player.
type
non-null cast.framework.messages.MessageType
videoInfo
(non-null cast.framework.messages.VideoInformation or undefined)
The video information.
volume
non-null cast.framework.messages.Volume
The current stream volume.