Videojs hotkeys to enable shortcut on button focus

This commit is contained in:
kyle.watson 2020-06-14 16:47:43 +01:00
parent 879f00321d
commit 8ff1751f5b
1 changed files with 5 additions and 1 deletions

View File

@ -221,7 +221,11 @@ export default Vue.extend({
qualitySelector(videojs, { showQualitySelectionLabelInControlBar: true })
}
this.player = videojs(videoPlayer)
this.player = videojs(videoPlayer, {
userActions: {
hotkeys: this.keyboardShortcutHandler
}
})
this.player.volume(this.volume)
this.player.playbackRate(this.defaultPlayback)