- Space bar toggles play/pause.
- Right and Left Arrow keys seek the video forwards and back.
- Up and Down Arrow keys increase and decrease the volume.
- M key toggles mute/unmute.
- F key toggles fullscreen off and on. (Does not work in Internet Explorer)
- Double-clicking with the mouse toggles fullscreen off and on.
- < key (with SHIFT) decrease playback speed.
- > key (with SHIFT) increse plaback speed.
- Use numeric keys (0-10) to jump 10% in time, e.g. key
6
= 60% of duration.
Load hotkeys plugin file along with videojs and nuevo plugin javascript files.
Code snippet
<script src="/path/to/plugins/videojs.hotkeys.min.js"></script>Code snippet
<script>const player = videojs("my_player", {license: "key"});player.nuevo({logo: '//domain.com/path/to/logo.png.logourl: '//domain.com',});player.hotkeys({volumeStep: 0.1,seekStep: 5});</script>Code snippet
player.hotkeys({
enableFull:false,
enableMute:false,
enableVolumeScroll:false,
});