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

Extends

  • MediaControlHandler

Implements

  • IMediaControlHandlerAsync

Constructors

new KeplerMediaControlHandler()

new KeplerMediaControlHandler(): KeplerMediaControlHandler

Returns

KeplerMediaControlHandler

Inherited from

MediaControlHandler.constructor

Properties

mediaPlayer

mediaPlayer: MediaPlayer

Inherited from

MediaControlHandler.mediaPlayer

Methods

handleCustomAction()

handleCustomAction(action, sessionId?): Promise<void>

Parameters

action
Action
sessionId?
IMediaSessionId

Returns

Promise<void>

Brief

Callback from KMC server to execute the media control command “customAction” for current mediaplayer instance. This is NOP for w3cmedia playback handling as this is playlist management feature. App clients are requested to choose to override the callback function using OverrideMediaControlHandler and implement accordingly.

Implementation of

IMediaControlHandlerAsync.handleCustomAction

Overrides

MediaControlHandler.handleCustomAction

handleDisableTextTrack()

handleDisableTextTrack(sessionId?): Promise<void>

Parameters

sessionId?
IMediaSessionId

Returns

Promise<void>

Brief

Callback from KMC server to execute the media control command “disableTextTrack” for current mediaplayer instance. w3cmedia will handle this internally by initiating disableTextTrack command as a default mode. alternatively App client can choose to override the callback function using OverrideMediaControlHandler and implement accordingly. Note: Currently this is NOP in default mode and handling will be available in future releases.

Implementation of

IMediaControlHandlerAsync.handleDisableTextTrack

Overrides

MediaControlHandler.handleDisableTextTrack
Last modified on February 25, 2026