Data object MediaSessionState
interface struct MediaSessionState
Describes the state of a media session.
This type includes the playback state, media item information, capabilities, the current playlist state,
and any available state for custom controls.
A media control server can have multiple media sessions and notifies updates
to each media session state by calling [IMediaControlServerAsync#updateMediaSessionStates].
Clients can obtain the media session state by calling [IMediaControlClientAsync#getSessionState].
Fields
id
The unique id associated with this media session state. This id is unique in the context of the media control server.MediaSessionId*— Required
playbackState
The current playback state for the media session.PlaybackState*— Required
mediaInfo
The information for the currently selected or playing media. This may be null if no media is currently selected.MediaInfo?— Optional
capabilities
The current capabilities of this media session. A client can inspect the capabilites to understand what this media session can support and adapt its UI or functionality accordingly.Capabilities*— Required
playlistState
The state of the playlist associated with this media session if any.PlaylistState?— Optional
controls
A list of custom controls. A media session can advertise the state of any custom control that is not expressable by any of the types in this IDL.Control[]— Required

