as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
アクセスいただきありがとうございます。こちらのページは現在英語のみのご用意となっております。順次日本語化を進めてまいりますので、ご理解のほどよろしくお願いいたします。

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

IMediaControlHandlerAsync

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

MediaSessionState[]

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