1
0
Fork 0
peertube/client/src/standalone/embed-player-api/definitions.ts

26 lines
429 B
TypeScript
Raw Normal View History

2019-04-02 16:30:26 +00:00
export type EventHandler<T> = (ev: T) => void
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'
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
2021-08-17 12:42:53 +00:00
mode: TextTrackMode
2020-05-06 09:54:33 +00:00
}