aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/player/definitions.ts
blob: 495f1a98ce2b6877d7824bb3e49a16e7fc58a064 (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
export type EventHandler<T> = (ev: T) => void

export type PlayerEventType =
  'pause' | 'play' |
  'playbackStatusUpdate' |
  'playbackStatusChange' |
  'resolutionUpdate' |
  'volumeChange'

export interface PeerTubeResolution {
  id: any
  label: string
  active: boolean
  height: number

  src?: string
  width?: number
}

export type PeerTubeTextTrack = {
  id: string
  label: string
  src: string
  mode: TextTrackMode
}