as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Represent media control server operations. This interface provides methods for managing media control handlers and updating media session states.

Properties

setHandlerForComponent

setHandlerForComponent: (handler: IMediaControlHandlerAsync, instance: IComponentInstance) => void
Assigns a handler to process requests for media control actions for a given component.

Parameters

handler
IMediaControlHandlerAsync An instance of the IMediaControlHandlerAsync interface that manages media control actions.
instance
IComponentInstance An instance of the IComponentInstance interface representing the component for which the handler is being set.

updateMediaSessionStates

updateMediaSessionStates: (states: MediaSessionState[]) => void
Updates the state of the media sessions.

Parameters

states
MediaSessionState[] Array of MediaSessionStates containing updated session states.
最后修改于 2026年8月25日