]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/standalone/player/definitions.ts
Merge branch 'release/3.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / standalone / player / definitions.ts
CommitLineData
c4710631 1export type EventHandler<T> = (ev: T) => void
99941732 2
902aa3a0
C
3export type PlayerEventType =
4 'pause' | 'play' |
5 'playbackStatusUpdate' |
6 'playbackStatusChange' |
6377a9f2
C
7 'resolutionUpdate' |
8 'volumeChange'
99941732
WL
9
10export interface PeerTubeResolution {
902aa3a0
C
11 id: any
12 label: string
902aa3a0 13 active: boolean
6377a9f2
C
14 height: number
15
16 src?: string
17 width?: number
902aa3a0 18}
1151f521
C
19
20export type PeerTubeTextTrack = {
21 id: string
22 label: string
23 src: string
24 mode: 'showing' | 'disabled'
25}