diff options
Diffstat (limited to 'client/src/assets/player/p2p-media-loader/hls-plugin.ts')
-rw-r--r-- | client/src/assets/player/p2p-media-loader/hls-plugin.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/assets/player/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/p2p-media-loader/hls-plugin.ts index 876ed7d9c..6937d147a 100644 --- a/client/src/assets/player/p2p-media-loader/hls-plugin.ts +++ b/client/src/assets/player/p2p-media-loader/hls-plugin.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | // We duplicated this plugin to choose the hls.js version we want, because streamroot only provide a bundled file | 2 | // We duplicated this plugin to choose the hls.js version we want, because streamroot only provide a bundled file |
3 | 3 | ||
4 | import * as Hlsjs from 'hls.js/dist/hls.light.js' | 4 | import * as Hlsjs from 'hls.js/dist/hls.light.js' |
5 | import videojs, { VideoJsPlayer } from 'video.js' | 5 | import videojs from 'video.js/dist/alt/video.core.js' |
6 | import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings' | 6 | import { HlsjsConfigHandlerOptions, QualityLevelRepresentation, QualityLevels, VideoJSTechHLS } from '../peertube-videojs-typings' |
7 | 7 | ||
8 | type ErrorCounts = { | 8 | type ErrorCounts = { |
@@ -55,7 +55,7 @@ const registerSourceHandler = function (vjs: typeof videojs) { | |||
55 | (vjs as any).Html5Hlsjs = Html5Hlsjs | 55 | (vjs as any).Html5Hlsjs = Html5Hlsjs |
56 | } | 56 | } |
57 | 57 | ||
58 | function hlsjsConfigHandler (this: VideoJsPlayer, options: HlsjsConfigHandlerOptions) { | 58 | function hlsjsConfigHandler (this: videojs.Player, options: HlsjsConfigHandlerOptions) { |
59 | const player = this | 59 | const player = this |
60 | 60 | ||
61 | if (!options) return | 61 | if (!options) return |
@@ -88,7 +88,7 @@ class Html5Hlsjs { | |||
88 | 88 | ||
89 | private readonly videoElement: HTMLVideoElement | 89 | private readonly videoElement: HTMLVideoElement |
90 | private readonly errorCounts: ErrorCounts = {} | 90 | private readonly errorCounts: ErrorCounts = {} |
91 | private readonly player: VideoJsPlayer | 91 | private readonly player: videojs.Player |
92 | private readonly tech: videojs.Tech | 92 | private readonly tech: videojs.Tech |
93 | private readonly source: videojs.Tech.SourceObject | 93 | private readonly source: videojs.Tech.SourceObject |
94 | private readonly vjs: typeof videojs | 94 | private readonly vjs: typeof videojs |