IMediaPlayerState interface

Most recent state of the media session.

Properties

metadata

Metadata for the sessions current track.

playbackState

Sessions current playback state.

positionState

Sessions current position state if known.

trackData

Optional track data object being synchronized.

Property Details

metadata

Metadata for the sessions current track.

metadata: null | ExtendedMediaMetadata

Property Value

playbackState

Sessions current playback state.

playbackState: ExtendedMediaSessionPlaybackState

Property Value

positionState

Sessions current position state if known.

positionState?: MediaPositionState

Property Value

MediaPositionState

trackData

Optional track data object being synchronized.

trackData: null | object

Property Value

null | object

Remarks

This can be used to sync things like pitch, roll, and yaw when watching 360 videos together.