]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/player/definitions.ts
move from trending routes to alg param
[github/Chocobozzz/PeerTube.git] / client / src / standalone / player / definitions.ts
index 6920672a71f791066d5689ced3971f907ff5d507..cc5203ed534ce93c01197a3217b1f8c4c1c27b1a 100644 (file)
@@ -1,18 +1,25 @@
+export type EventHandler<T> = (ev: T) => void
 
-export interface EventHandler<T> {
-    (ev : T) : void
-}
-
-export type PlayerEventType = 
-    'pause' | 'play' | 
-    'playbackStatusUpdate' | 
-    'playbackStatusChange' | 
-    'resolutionUpdate'
-;
+export type PlayerEventType =
+  'pause' | 'play' |
+  'playbackStatusUpdate' |
+  'playbackStatusChange' |
+  'resolutionUpdate' |
+  'volumeChange'
 
 export interface PeerTubeResolution {
-    id : any
-    label : string
-    src : string
-    active : boolean
-}
\ No newline at end of file
+  id: any
+  label: string
+  active: boolean
+  height: number
+
+  src?: string
+  width?: number
+}
+
+export type PeerTubeTextTrack = {
+  id: string
+  label: string
+  src: string
+  mode: 'showing' | 'disabled'
+}