aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-02 15:59:16 +0200
committerChocobozzz <me@florianbigard.com>2023-06-29 10:16:57 +0200
commit52807a075fdc4933d20e882844f7835e9c38afeb (patch)
treebd6977044b1c1da35f3b61969494463cba8760c9 /client/src/assets/player/shared
parentb7f946892bcd63d5e01e50df3a40c56d3cb7577b (diff)
downloadPeerTube-52807a075fdc4933d20e882844f7835e9c38afeb.tar.gz
PeerTube-52807a075fdc4933d20e882844f7835e9c38afeb.tar.zst
PeerTube-52807a075fdc4933d20e882844f7835e9c38afeb.zip
Fix storyboard on firefox
Diffstat (limited to 'client/src/assets/player/shared')
-rw-r--r--client/src/assets/player/shared/control-bar/storyboard-plugin.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/assets/player/shared/control-bar/storyboard-plugin.ts b/client/src/assets/player/shared/control-bar/storyboard-plugin.ts
index c1843f595..81ab60842 100644
--- a/client/src/assets/player/shared/control-bar/storyboard-plugin.ts
+++ b/client/src/assets/player/shared/control-bar/storyboard-plugin.ts
@@ -34,10 +34,10 @@ class StoryboardPlugin extends Plugin {
34 34
35 this.boundedHijackMouseTooltip = this.hijackMouseTooltip.bind(this) 35 this.boundedHijackMouseTooltip = this.hijackMouseTooltip.bind(this)
36 36
37 this.init()
38
37 this.player.ready(() => { 39 this.player.ready(() => {
38 player.addClass('vjs-storyboard') 40 player.addClass('vjs-storyboard')
39
40 this.init()
41 }) 41 })
42 } 42 }
43 43
@@ -54,8 +54,8 @@ class StoryboardPlugin extends Plugin {
54 this.spritePlaceholder = videojs.dom.createEl('div', { className: 'vjs-storyboard-sprite-placeholder' }) as HTMLElement 54 this.spritePlaceholder = videojs.dom.createEl('div', { className: 'vjs-storyboard-sprite-placeholder' }) as HTMLElement
55 this.seekBar?.el()?.appendChild(this.spritePlaceholder) 55 this.seekBar?.el()?.appendChild(this.spritePlaceholder)
56 56
57 this.player.on([ 'ready', 'loadstart' ], evt => { 57 this.player.on([ 'ready', 'loadstart' ], event => {
58 if (evt !== 'ready') { 58 if (event.type !== 'ready') {
59 const spriteSource = this.player.currentSources().find(source => { 59 const spriteSource = this.player.currentSources().find(source => {
60 return Object.prototype.hasOwnProperty.call(source, 'storyboard') 60 return Object.prototype.hasOwnProperty.call(source, 'storyboard')
61 }) as any 61 }) as any