diff options
Diffstat (limited to 'client/src/assets/player/peertube-videojs-typings.ts')
-rw-r--r-- | client/src/assets/player/peertube-videojs-typings.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/assets/player/peertube-videojs-typings.ts b/client/src/assets/player/peertube-videojs-typings.ts index bd6db4ffc..ea39ac44d 100644 --- a/client/src/assets/player/peertube-videojs-typings.ts +++ b/client/src/assets/player/peertube-videojs-typings.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { HlsConfig, Level } from 'hls.js' | 1 | import { HlsConfig, Level } from 'hls.js' |
2 | import videojs from 'video.js' | 2 | import videojs from 'video.js' |
3 | import { VideoFile, VideoPlaylist, VideoPlaylistElement } from '@shared/models' | 3 | import { VideoFile, VideoPlaylist, VideoPlaylistElement } from '@shared/models' |
4 | import { Html5Hlsjs } from './p2p-media-loader/hls-plugin' | ||
4 | import { P2pMediaLoaderPlugin } from './p2p-media-loader/p2p-media-loader-plugin' | 5 | import { P2pMediaLoaderPlugin } from './p2p-media-loader/p2p-media-loader-plugin' |
5 | import { RedundancyUrlManager } from './p2p-media-loader/redundancy-url-manager' | 6 | import { RedundancyUrlManager } from './p2p-media-loader/redundancy-url-manager' |
6 | import { PlayerMode } from './peertube-player-manager' | 7 | import { PlayerMode } from './peertube-player-manager' |
@@ -56,12 +57,11 @@ declare module 'video.js' { | |||
56 | } | 57 | } |
57 | 58 | ||
58 | export interface VideoJSTechHLS extends videojs.Tech { | 59 | export interface VideoJSTechHLS extends videojs.Tech { |
59 | hlsProvider: any // FIXME: typings | 60 | hlsProvider: Html5Hlsjs |
60 | } | 61 | } |
61 | 62 | ||
62 | export interface HlsjsConfigHandlerOptions { | 63 | export interface HlsjsConfigHandlerOptions { |
63 | hlsjsConfig?: HlsConfig & { cueHandler: any }// FIXME: typings | 64 | hlsjsConfig?: HlsConfig |
64 | captionConfig?: any // FIXME: typings | ||
65 | 65 | ||
66 | levelLabelHandler?: (level: Level) => string | 66 | levelLabelHandler?: (level: Level) => string |
67 | } | 67 | } |