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
Native
Skip to main content
When implemented, handles media control state changes.

Properties

onStateChanged

onStateChanged: (updatedStates: MediaSessionState[]) => void
Invoked when a media control endpoint session changes state.

Parameters

updatedStates
MediaSessionState[] array of updated states.
Last modified on August 25, 2026