Class: MediaStatus

Stay organized with collections Save and categorize content based on your preferences.

Constructor

MediaStatus

new MediaStatus()

Properties

activeTrackIds

(non-null Array of number or undefined)

A list of IDs corresponding to the active tracks.

breakStatus

(non-null cast.framework.messages.BreakStatus or undefined)

Contains information about the currently-playing break.

currentItemId

(number or undefined)

The 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)

The extended media status information. It is used to broadcast additional player states beyond the four main ones, namely IDLE, PLAYING, PAUSED, and BUFFERING. Currently it is used only to signal the initial loading of a media item. In that case MediaStatus#playerState is IDLE, but ExtendedMediaStatus#playerState is LOADING.

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)

The seekable range of a live or event stream. This uses the relative media time, in seconds. It is undefined for VOD streams.

loadingItemId

(number or undefined)

The ID of the currently-loading media item. If there is no item being loaded, this is undefined.

media

(non-null cast.framework.messages.MediaInformation or undefined)

The media information.

mediaSessionId

number

The unique session ID.

playbackRate

number

The playback rate.

playerState

non-null cast.framework.messages.PlayerState

The playback state.

preloadedItemId

(number or undefined)

ID of the next item. This ID is only available if that item has been preloaded. Media items can be partially preloaded and cached, 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.