Merge pull request #31 from kylejwatson/focus-keyboard-shortcut
Videojs hotkeys to enable shortcut on button focus
This commit is contained in:
commit
cea28b32aa
|
@ -221,7 +221,11 @@ export default Vue.extend({
|
||||||
qualitySelector(videojs, { showQualitySelectionLabelInControlBar: true })
|
qualitySelector(videojs, { showQualitySelectionLabelInControlBar: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
this.player = videojs(videoPlayer)
|
this.player = videojs(videoPlayer, {
|
||||||
|
userActions: {
|
||||||
|
hotkeys: this.keyboardShortcutHandler
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
this.player.volume(this.volume)
|
this.player.volume(this.volume)
|
||||||
this.player.playbackRate(this.defaultPlayback)
|
this.player.playbackRate(this.defaultPlayback)
|
||||||
|
|
Loading…
Reference in New Issue