as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Interface for asynchronously locating and interacting with media control endpoints.

Properties

getMediaControlEndpoints

getMediaControlEndpoints: () => Promise<IMediaControlClientAsync[]>
Call to obtain a list of media control clients.

Returns

Promise<IMediaControlClientAsync[]> containing an ordered list of media control endpoints. The returned list is ordered with the first media control having active focus.

addChangeListener

addChangeListener: (listener: IMediaControlEndpointLocatorListener) => Promise<ISubscription>
Subscribes a listener to monitor changes in the list of control endpoints.

Parameters

listener
IMediaControlEndpointLocatorListener

Returns

Promise<ISubscription> A Promise that resolves to an ISubscription object. The resolved ISubscription object provides a method to unsubscribe the listener when it’s no longer need.
最后修改于 2026年8月25日