IMediaControlServerAsync
Represent media control server operations. This interface provides methods for managing media control handlers and updating media session states.
Properties
setHandlerForComponent()
setHandlerForComponent: (
handler
,instance
) =>void
Assigns a handler to process requests for media control actions for a given component.
Parameters
handler
instance
IComponentInstance
Returns
void
Remarks
Assigning a handler is essential for processing media control requests and implementing custom media control logic.
There is only one active handler at a time. The active handler is the one set by the most recent invocation of setHandler.
updateMediaSessionStates()
updateMediaSessionStates: (
states
) =>void
Updates the state of the media sessions.
Parameters
states
Returns
void
Remarks
Updating the session states is crucial for reflecting changes in media playback status, available media streams, and other related information.
State changes can also be an action taken by a media control server application
upon acting on an media control action received through the installed
IMediaControlHandlerAsync
instance.
Last updated: Sep 30, 2025