]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/peertube-load-progress-bar.ts
Fix player progress bar when changing resolution
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / peertube-load-progress-bar.ts
index aedc641e4af28625e3e2bcc7cc4ad2b415f8515c..af276d1b2dfc93a1fd61ea07a43b80e8adafa688 100644 (file)
@@ -1,10 +1,13 @@
 import { VideoJSComponentInterface, videojsUntyped } from './peertube-videojs-typings'
+// FIXME: something weird with our path definition in tsconfig and typings
+// @ts-ignore
+import { Player } from 'video.js'
 
 const Component: VideoJSComponentInterface = videojsUntyped.getComponent('Component')
 
 class PeerTubeLoadProgressBar extends Component {
 
-  constructor (player, options) {
+  constructor (player: Player, options: any) {
     super(player, options)
     this.partEls_ = []
     this.on(player, 'progress', this.update)