On this page
Control video playback
Seek, pause and respond to playback changes.
Before you begin: Customize player controls.
Programmatic Control
The object returned from Frontbacked.video.attach() controls the player directly:
Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →
Read playback state:
Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →
Keyboard shortcuts work when the player is active:
| Key | Action |
|---|---|
Space or K | Play or pause. |
J | Rewind 10 seconds. |
L | Forward 10 seconds. |
Left Arrow | Rewind 5 seconds. |
Right Arrow | Forward 5 seconds. |
M | Mute or unmute. |
F | Toggle fullscreen. |
Clicking the video surface toggles play and pause. Double-clicking the left side rewinds, and double-clicking the right side forwards.
Playback Callback
Use onPlayback when your theme needs to react to the current time or remaining time.
Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →
Callback data:
Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →
Continue with Build a video playlist.