From 7e37e111116e41530749b88327bc601cb39ade03 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Apr 2020 11:20:12 +0200 Subject: Fix videojs typings --- client/src/standalone/videos/embed.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/standalone/videos') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 879850daf..6616fab48 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -15,14 +15,14 @@ import { import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type' import { PeerTubeEmbedApi } from './embed-api' import { TranslationsManager } from '../../assets/player/translations-manager' -import { VideoJsPlayer } from 'video.js' +import videojs from 'video.js/dist/alt/video.core.js' import { VideoJSCaption } from '../../assets/player/peertube-videojs-typings' type Translations = { [ id: string ]: string } export class PeerTubeEmbed { videoElement: HTMLVideoElement - player: VideoJsPlayer + player: videojs.Player api: PeerTubeEmbedApi = null autoplay: boolean controls: boolean @@ -237,7 +237,7 @@ export class PeerTubeEmbed { }) } - this.player = await PeertubePlayerManager.initialize(this.mode, options, (player: VideoJsPlayer) => this.player = player) + this.player = await PeertubePlayerManager.initialize(this.mode, options, (player: videojs.Player) => this.player = player) this.player.on('customError', (event: any, data: any) => this.handleError(data.err, serverTranslations)) window[ 'videojsPlayer' ] = this.player -- cgit v1.2.3