]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/upnext/end-card.ts
Fix videojs typings
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / upnext / end-card.ts
index d121a83a9cbf161b1bd3743c95fe0cc0b9425b64..c39a9c91349ec143a0ec9efd01e574948e7f71f2 100644 (file)
@@ -1,4 +1,4 @@
-import videojs, { VideoJsPlayer } from 'video.js'
+import videojs from 'video.js/dist/alt/video.core.js'
 
 function getMainTemplate (options: any) {
   return `
@@ -50,7 +50,7 @@ class EndCard extends Component {
   suspendedMessage: HTMLElement
   nextButton: HTMLElement
 
-  constructor (player: VideoJsPlayer, options: EndCardOptions) {
+  constructor (player: videojs.Player, options: EndCardOptions) {
     super(player, options)
 
     this.totalTicks = this.options_.timeout / this.interval