Keyboard hotkeys for videon
Here's a demo of the hotkeys plugin by Nuevodevel. Supported hotkeys are as follow:- 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.
- Use mouse weheel to 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.
Code snippet
<script src="/path/to/plugins/videojs.hotkeys.min.js"></script>
Code snippet
var player = videojs('player_example_1); player.nuevo({ logo: '//domain.com/path/to/logo.png. logourl: '//domain.com', }); player.hotkeys({ volumeStep: 0.1, seekStep: 5 });
Code snippet
player.hotkeys({
enableFull:false,
enableMute:false,
enableVolumeScroll:false,
});