Dashboard

Keyboard Shortcuts

The desktop player ships with a Stripe-grade keyboard shortcut set. All shortcuts are automatically disabled when the user is typing in an input or textarea anywhere on the page.

Playback

KeyAction
SpacePlay / pause
/ Skip back / forward 5 s
J / LSkip back / forward 10 s
Shift + ← / Shift + →Skip back / forward 30 s
, / .Step back / forward by 1 frame (paused)
09Jump to 0 %, 10 %, … 90 % of duration
Home / EndJump to start / end
Shift + LToggle loop
BSet A↔B loop point (press twice to define, third to clear)

Audio

KeyAction
MMute / unmute
/ Volume up / down 5 %

Display

KeyAction
FToggle fullscreen
TToggle theater mode
ZToggle zen mode (chrome auto-hides)
AAudio-only mode
WToggle fit / fill scaling
GToggle ambient glow
PPicture-in-Picture
KLock the player (ignore pointer + keyboard until unlocked)

Tools

KeyAction
SSave a screenshot of the current frame
IToggle stats overlay (resolution, bitrate, buffer)
NToggle network diagnostics overlay
CToggle captions / chat panel

System

KeyAction
EscClose all overlays + exit fullscreen
?Show the shortcut cheatsheet

Disable all shortcuts

const player = new AnsdevPlayer({
  container: '#player',
  videoId,
  playbackToken,
  features: { keyboardShortcuts: false },
});

ℹ️ Mobile uses gestures

Keyboard shortcuts are desktop-only. On touch devices, the player uses gestures:

  • Double-tap left / right — seek back / forward 10 s
  • Swipe up / down (left edge) — adjust brightness
  • Swipe up / down (right edge) — adjust volume
  • Pinch — zoom into the frame
  • Long-press — speed up to 2× while held