DocsVideo players
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:

js

Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →

Read playback state:

js

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:

KeyAction
Space or KPlay or pause.
JRewind 10 seconds.
LForward 10 seconds.
Left ArrowRewind 5 seconds.
Right ArrowForward 5 seconds.
MMute or unmute.
FToggle 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.

js

Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →

Callback data:

js

Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →

Continue with Build a video playlist.