aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/bezels
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-17 11:20:12 +0200
committerChocobozzz <me@florianbigard.com>2020-04-17 14:12:43 +0200
commit7e37e111116e41530749b88327bc601cb39ade03 (patch)
treea141a84b6999029084629d45a3d5addbfa34e603 /client/src/assets/player/bezels
parentbb3933ef370c46be6090e4e522c6e3f5b7144f4c (diff)
downloadPeerTube-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.ts4
-rw-r--r--client/src/assets/player/bezels/pause-bezel.ts4
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 @@
1import videojs, { VideoJsPlayer } from 'video.js' 1import videojs from 'video.js/dist/alt/video.core.js'
2import './pause-bezel' 2import './pause-bezel'
3 3
4const Plugin = videojs.getPlugin('plugin') 4const Plugin = videojs.getPlugin('plugin')
5 5
6class BezelsPlugin extends Plugin { 6class 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 @@
1import videojs, { VideoJsPlayer } from 'video.js' 1import videojs from 'video.js/dist/alt/video.core.js'
2 2
3function getPauseBezel () { 3function getPauseBezel () {
4 return ` 4 return `
@@ -34,7 +34,7 @@ const Component = videojs.getComponent('Component')
34class PauseBezel extends Component { 34class 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) => {