]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/player/definitions.ts
Translated using Weblate (Persian)
[github/Chocobozzz/PeerTube.git] / client / src / standalone / player / definitions.ts
index 7f9ef9b6f9807a315e430037d16a38291474b883..495f1a98ce2b6877d7824bb3e49a16e7fc58a064 100644 (file)
@@ -1,16 +1,25 @@
-export interface EventHandler<T> {
-  (ev: T): void
-}
+export type EventHandler<T> = (ev: T) => void
 
 export type PlayerEventType =
   'pause' | 'play' |
   'playbackStatusUpdate' |
   'playbackStatusChange' |
-  'resolutionUpdate'
+  'resolutionUpdate' |
+  'volumeChange'
 
 export interface PeerTubeResolution {
   id: any
   label: string
-  src: string
   active: boolean
+  height: number
+
+  src?: string
+  width?: number
+}
+
+export type PeerTubeTextTrack = {
+  id: string
+  label: string
+  src: string
+  mode: TextTrackMode
 }