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/upnext/end-card.ts | |
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/upnext/end-card.ts')
-rw-r--r-- | client/src/assets/player/upnext/end-card.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/upnext/end-card.ts b/client/src/assets/player/upnext/end-card.ts index d121a83a9..c39a9c913 100644 --- a/client/src/assets/player/upnext/end-card.ts +++ b/client/src/assets/player/upnext/end-card.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 getMainTemplate (options: any) { | 3 | function getMainTemplate (options: any) { |
4 | return ` | 4 | return ` |
@@ -50,7 +50,7 @@ class EndCard extends Component { | |||
50 | suspendedMessage: HTMLElement | 50 | suspendedMessage: HTMLElement |
51 | nextButton: HTMLElement | 51 | nextButton: HTMLElement |
52 | 52 | ||
53 | constructor (player: VideoJsPlayer, options: EndCardOptions) { | 53 | constructor (player: videojs.Player, options: EndCardOptions) { |
54 | super(player, options) | 54 | super(player, options) |
55 | 55 | ||
56 | this.totalTicks = this.options_.timeout / this.interval | 56 | this.totalTicks = this.options_.timeout / this.interval |