registerComponent (name: string, obj: any)
}
+type VideoJSCaption = {
+ label: string
+ language: string
+ src: string
+}
+
type PeertubePluginOptions = {
videoFiles: VideoFile[]
playerElement: HTMLVideoElement
videoViewUrl: string
videoDuration: number
- startTime: number
- autoplay: boolean
+ startTime: number | string
+ autoplay: boolean,
+ videoCaptions: VideoJSCaption[]
}
// videojs typings don't have some method we need
export {
VideoJSComponentInterface,
PeertubePluginOptions,
- videojsUntyped
+ videojsUntyped,
+ VideoJSCaption
}