Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Class representing a client for a media control endpoint. This class is used to interact with the media control endpoint and perform various actions such as play, pause, seek, and more.

Implements

Constructors

new MediaControlClientAsync()

new MediaControlClientAsync(client): MediaControlClientAsync

Parameters

client
NativeClient

Returns

MediaControlClientAsync

Properties

client

readonly client: NativeClient

emptySession

readonly emptySession: IMediaSessionId

Methods

addListener()

addListener(listener): Promise<ISubscription> Subscribes a listener to monitor changes in the media session state.

Parameters

listener
IMediaControlListener

Returns

Promise<ISubscription>

Implementation of

IMediaControlClientAsync.addListener
Last modified on September 30, 2025