blob: a66caa30beffad446d898f37f6b60b8793d86e17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
import * as videojs from 'video.js'
import { VideoFile } from '../../../../shared/models/videos/video.model'
import { PeerTubePlugin } from './peertube-videojs-plugin'
declare module 'video.js' {
interface Player {
peertube (): PeerTubePlugin
}
}
interface VideoJSComponentInterface {
_player: videojs.Player
new (player: videojs.Player, options?: any)
registerComponent (name: string, obj: any)
}
type PeertubePluginOptions = {
videoFiles: VideoFile[]
playerElement: HTMLVideoElement
videoViewUrl: string
videoDuration: number
startTime: number
}
// videojs typings don't have some method we need
const videojsUntyped = videojs as any
export {
VideoJSComponentInterface,
PeertubePluginOptions,
videojsUntyped
}
|