aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/upnext
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/upnext
parentbb3933ef370c46be6090e4e522c6e3f5b7144f4c (diff)
downloadPeerTube-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.ts4
-rw-r--r--client/src/assets/player/upnext/upnext-plugin.ts4
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 @@
1import videojs, { VideoJsPlayer } from 'video.js' 1import videojs from 'video.js/dist/alt/video.core.js'
2 2
3function getMainTemplate (options: any) { 3function 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 @@
1import videojs, { VideoJsPlayer } from 'video.js' 1import videojs from 'video.js/dist/alt/video.core.js'
2import { EndCardOptions } from './end-card' 2import { EndCardOptions } from './end-card'
3 3
4const Plugin = videojs.getPlugin('plugin') 4const Plugin = videojs.getPlugin('plugin')
5 5
6class UpNextPlugin extends Plugin { 6class 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,