diff options
Diffstat (limited to 'client/src/assets/player/peertube-videojs-typings.ts')
-rw-r--r-- | client/src/assets/player/peertube-videojs-typings.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-videojs-typings.ts b/client/src/assets/player/peertube-videojs-typings.ts index 50d6039ea..9c0299237 100644 --- a/client/src/assets/player/peertube-videojs-typings.ts +++ b/client/src/assets/player/peertube-videojs-typings.ts | |||
@@ -16,13 +16,20 @@ interface VideoJSComponentInterface { | |||
16 | registerComponent (name: string, obj: any) | 16 | registerComponent (name: string, obj: any) |
17 | } | 17 | } |
18 | 18 | ||
19 | type VideoJSCaption = { | ||
20 | label: string | ||
21 | language: string | ||
22 | src: string | ||
23 | } | ||
24 | |||
19 | type PeertubePluginOptions = { | 25 | type PeertubePluginOptions = { |
20 | videoFiles: VideoFile[] | 26 | videoFiles: VideoFile[] |
21 | playerElement: HTMLVideoElement | 27 | playerElement: HTMLVideoElement |
22 | videoViewUrl: string | 28 | videoViewUrl: string |
23 | videoDuration: number | 29 | videoDuration: number |
24 | startTime: number | 30 | startTime: number |
25 | autoplay: boolean | 31 | autoplay: boolean, |
32 | videoCaptions: VideoJSCaption[] | ||
26 | } | 33 | } |
27 | 34 | ||
28 | // videojs typings don't have some method we need | 35 | // videojs typings don't have some method we need |
@@ -31,5 +38,6 @@ const videojsUntyped = videojs as any | |||
31 | export { | 38 | export { |
32 | VideoJSComponentInterface, | 39 | VideoJSComponentInterface, |
33 | PeertubePluginOptions, | 40 | PeertubePluginOptions, |
34 | videojsUntyped | 41 | videojsUntyped, |
42 | VideoJSCaption | ||
35 | } | 43 | } |