Merge pull request #31 from kylejwatson/focus-keyboard-shortcut

Videojs hotkeys to enable shortcut on button focus
This commit is contained in:
Preston 2020-06-19 16:38:18 -04:00 committed by GitHub
commit cea28b32aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)