- Enable KMC. Add the necessary manifest entries to your manifest.toml file as described in Get started with Vega Media Controls Overview.
-
Update your package.json file to take a dependency on
@amazon-devices/kepler-media-controls. -
Get the component instance of the interactive component:
-
Before initializing the video player set the media control focus on the player instance.
player.setMediaControlFocus(componentInstance);
-
Extend KeplerMediaControlHandler provided by W3C media and override the function that the application wants to override.
-
Pass the app’s media control handler as the second parameter to the
setMediaControlFocusmethod.

