Keyboard and gestures
pluginaccessibilityEvery shortcut, plus double-tap seeking on touch screens.
Click or tab into the player, then use the keys on the right. On a phone, double-tap either side of the video to jump 10 seconds; taps in a row add up.
| Key | Action |
|---|---|
| SPACE | Play or pause |
| K | Play or pause |
| J | Back 10 seconds |
| L | Forward 10 seconds |
| ← | Back 5 seconds |
| → | Forward 5 seconds |
| ↑ | Volume up |
| ↓ | Volume down |
| HOME | Go to start |
| END | Go to end |
| M | Mute or unmute |
| F | Fullscreen |
| C | Captions on or off |
| I | Picture-in-picture |
The code
tsximport { hotkeys } from '@tomato-player/plugin-hotkeys';import { gestures } from '@tomato-player/plugin-gestures';createPlayer('#player', {src: 'movie.mp4',skin: minimal(),plugins: [hotkeys({ scope: 'focus', bindings: { p: (player) => player.togglePip(), i: null } }),gestures({ seekStep: 10 }),],});