X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fassets%2Fplayer%2Fpeertube-load-progress-bar.ts;h=af276d1b2dfc93a1fd61ea07a43b80e8adafa688;hb=fe05c3acbd48c72ac7e503bebde91830121a0bf1;hp=cc861c451dc7e3574e5738685f7f374cc4cb4af9;hpb=77728efa627527a9f0f27010a597e8984d7a27f8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/assets/player/peertube-load-progress-bar.ts b/client/src/assets/player/peertube-load-progress-bar.ts index cc861c451..af276d1b2 100644 --- a/client/src/assets/player/peertube-load-progress-bar.ts +++ b/client/src/assets/player/peertube-load-progress-bar.ts @@ -1,11 +1,13 @@ -import * as Bitfield from 'bitfield' 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)