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 | |
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')
-rw-r--r-- | client/src/assets/player/upnext/end-card.ts | 4 | ||||
-rw-r--r-- | client/src/assets/player/upnext/upnext-plugin.ts | 4 |
2 files changed, 4 insertions, 4 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 |
diff --git a/client/src/assets/player/upnext/upnext-plugin.ts b/client/src/assets/player/upnext/upnext-plugin.ts index 6512fec2c..ac7699e9a 100644 --- a/client/src/assets/player/upnext/upnext-plugin.ts +++ b/client/src/assets/player/upnext/upnext-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 { EndCardOptions } from './end-card' | 2 | import { EndCardOptions } from './end-card' |
3 | 3 | ||
4 | const Plugin = videojs.getPlugin('plugin') | 4 | const Plugin = videojs.getPlugin('plugin') |
5 | 5 | ||
6 | class UpNextPlugin extends Plugin { | 6 | class UpNextPlugin extends Plugin { |
7 | 7 | ||
8 | constructor (player: VideoJsPlayer, options: Partial<EndCardOptions> = {}) { | 8 | constructor (player: videojs.Player, options: Partial<EndCardOptions> = {}) { |
9 | const settings = { | 9 | const settings = { |
10 | next: options.next, | 10 | next: options.next, |
11 | getTitle: options.getTitle, | 11 | getTitle: options.getTitle, |