2019-04-02 16:30:26 +00:00
|
|
|
export type EventHandler<T> = (ev: T) => void
|
2018-07-10 15:47:56 +00:00
|
|
|
|
2018-07-10 16:02:30 +00:00
|
|
|
export type PlayerEventType =
|
|
|
|
'pause' | 'play' |
|
|
|
|
'playbackStatusUpdate' |
|
|
|
|
'playbackStatusChange' |
|
2019-12-17 13:20:43 +00:00
|
|
|
'resolutionUpdate' |
|
|
|
|
'volumeChange'
|
2018-07-10 15:47:56 +00:00
|
|
|
|
|
|
|
export interface PeerTubeResolution {
|
2018-07-10 16:02:30 +00:00
|
|
|
id: any
|
|
|
|
label: string
|
|
|
|
active: boolean
|
2019-12-17 13:20:43 +00:00
|
|
|
height: number
|
|
|
|
|
|
|
|
src?: string
|
|
|
|
width?: number
|
2018-07-10 16:02:30 +00:00
|
|
|
}
|
2020-05-06 09:54:33 +00:00
|
|
|
|
|
|
|
export type PeerTubeTextTrack = {
|
|
|
|
id: string
|
|
|
|
label: string
|
|
|
|
src: string
|
|
|
|
mode: 'showing' | 'disabled'
|
|
|
|
}
|