diff options
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, |