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
Represent Kepler player server operations. This interface provides methods for managing Kepler player server handlers and updating Kepler player session status.
For runtime errors, apps are expected to reject the promise with Error object, and if possible send the error code and message received from media player using IPlayerSessionError

Properties

addTrack()

addTrack: (newTrack, sessionId?) => Promise<void> Notifies interested clients about Kepler player new track. {Audio,Video}Player must register to “addtrack” EventListener in AudioTrackList | VideoTrackList | TextTrackList, and then call this API.

Parameters

newTrack
ITrackInfo Read-only details of new track added.
sessionId?
IPlayerSessionId Optional. The session ID of the session whose new track has been added. If not provided, treat as a request for data on all sessions.

Returns

Promise<void> Promise that resolves when the update is complete.

Details

Updating the server session new track is crucial for reflecting changes in media playback status, currently selected media, and other related information. Apps can register to “addtrack” EventListener on HtmlMediaElement.{audioTracks,videoTracks,textTracks} attributes and then call IPlayerServer.addTrack if the event is emitted. Example:

removeTrack()

removeTrack: (removedTrack, sessionId?) => Promise<void> Notifies interested clients about Kepler player existing track removed. {Audio,Video}Player must register to “removetrack” EventListener in AudioTrackList | VideoTrackList | TextTrackList, and then call this API.

Parameters

removedTrack
ITrackInfo Readonly details of existing track removed.
sessionId?
IPlayerSessionId Optional. The session ID of the session whose existing track has been removed. If not provided, treat as a request for data on all sessions.

Returns

Promise<void> Promise that resolves when the update is complete.

Details

Updating the server session removed track is crucial for reflecting changes in media playback status, currently selected media, and other related information. Apps can register to “removetrack” EventListener on HtmlMediaElement.{audioTracks,videoTracks,textTracks} attributes and then call IPlayerServer.removeTrack if the event is emitted. Example:

Last modified on October 2, 2025