diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-17 11:20:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-17 14:12:43 +0200 |
commit | 7e37e111116e41530749b88327bc601cb39ade03 (patch) | |
tree | a141a84b6999029084629d45a3d5addbfa34e603 /client/src/assets/player/bezels | |
parent | bb3933ef370c46be6090e4e522c6e3f5b7144f4c (diff) | |
download | PeerTube-7e37e111116e41530749b88327bc601cb39ade03.tar.gz PeerTube-7e37e111116e41530749b88327bc601cb39ade03.tar.zst PeerTube-7e37e111116e41530749b88327bc601cb39ade03.zip |
Fix videojs typings
Diffstat (limited to 'client/src/assets/player/bezels')
-rw-r--r-- | client/src/assets/player/bezels/bezels-plugin.ts | 4 | ||||
-rw-r--r-- | client/src/assets/player/bezels/pause-bezel.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/assets/player/bezels/bezels-plugin.ts b/client/src/assets/player/bezels/bezels-plugin.ts index 499177526..ad8bfa703 100644 --- a/client/src/assets/player/bezels/bezels-plugin.ts +++ b/client/src/assets/player/bezels/bezels-plugin.ts | |||
@@ -1,11 +1,11 @@ | |||
1 | import videojs, { VideoJsPlayer } from 'video.js' | 1 | import videojs from 'video.js/dist/alt/video.core.js' |
2 | import './pause-bezel' | 2 | import './pause-bezel' |
3 | 3 | ||
4 | const Plugin = videojs.getPlugin('plugin') | 4 | const Plugin = videojs.getPlugin('plugin') |
5 | 5 | ||
6 | class BezelsPlugin extends Plugin { | 6 | class BezelsPlugin extends Plugin { |
7 | 7 | ||
8 | constructor (player: VideoJsPlayer, options?: videojs.ComponentOptions) { | 8 | constructor (player: videojs.Player, options?: videojs.ComponentOptions) { |
9 | super(player) | 9 | super(player) |
10 | 10 | ||
11 | this.player.ready(() => { | 11 | this.player.ready(() => { |
diff --git a/client/src/assets/player/bezels/pause-bezel.ts b/client/src/assets/player/bezels/pause-bezel.ts index 98eb12099..d9ef9a390 100644 --- a/client/src/assets/player/bezels/pause-bezel.ts +++ b/client/src/assets/player/bezels/pause-bezel.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import videojs, { VideoJsPlayer } from 'video.js' | 1 | import videojs from 'video.js/dist/alt/video.core.js' |
2 | 2 | ||
3 | function getPauseBezel () { | 3 | function getPauseBezel () { |
4 | return ` | 4 | return ` |
@@ -34,7 +34,7 @@ const Component = videojs.getComponent('Component') | |||
34 | class PauseBezel extends Component { | 34 | class PauseBezel extends Component { |
35 | container: HTMLDivElement | 35 | container: HTMLDivElement |
36 | 36 | ||
37 | constructor (player: VideoJsPlayer, options?: videojs.ComponentOptions) { | 37 | constructor (player: videojs.Player, options?: videojs.ComponentOptions) { |
38 | super(player, options) | 38 | super(player, options) |
39 | 39 | ||
40 | player.on('pause', (_: any) => { | 40 | player.on('pause', (_: any) => { |