X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fstandalone%2Fplayer%2Fdefinitions.ts;h=cc5203ed534ce93c01197a3217b1f8c4c1c27b1a;hb=35f676e5d3e5e242e84ed63da2cc78117079c7cb;hp=7f9ef9b6f9807a315e430037d16a38291474b883;hpb=902aa3a099638b2198c24c076c61577a8435277b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/standalone/player/definitions.ts b/client/src/standalone/player/definitions.ts index 7f9ef9b6f..cc5203ed5 100644 --- a/client/src/standalone/player/definitions.ts +++ b/client/src/standalone/player/definitions.ts @@ -1,16 +1,25 @@ -export interface EventHandler { - (ev: T): void -} +export type EventHandler = (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: 'showing' | 'disabled' }