this.zone.runOutsideAngular(async () => {
this.player = await PeertubePlayerManager.initialize(playerMode, playerOptions, player => this.player = player)
- this.player.focus()
this.player.on('customError', ({ err }: { err: any }) => this.handleError(err))
private static addHotkeysOptions (plugins: VideoJSPluginOptions) {
Object.assign(plugins, {
hotkeys: {
+ skipInitialFocus: true,
+ enableInactiveFocus: false,
+ captureDocumentHotkeys: true,
+ documentHotkeysFocusElementFilter: (e: HTMLElement) => {
+ return e.id === 'content' || e.tagName.toLowerCase() === 'body'
+ },
+
enableVolumeScroll: false,
enableModifiersForNumbers: false,