Player APIPlayer API overview
Player API overview
Drive playback and react to viewer events from your code.
The Moviie Player exposes a JavaScript API that lets you:
- Start, pause, seek and stop playback.
- Toggle fullscreen, Picture-in-Picture and audio.
- React to lifecycle events (
ready,play,pause,ended, …). - Inspect the current state of the player on demand.
The API is stable: every breaking change ships in a major version bump.