diff options
-rw-r--r-- | client/src/assets/player/shared/control-bar/storyboard-plugin.ts | 8 |
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 |