aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/embed-player-api/definitions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/standalone/embed-player-api/definitions.ts')
-rw-r--r--client/src/standalone/embed-player-api/definitions.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/client/src/standalone/embed-player-api/definitions.ts b/client/src/standalone/embed-player-api/definitions.ts
new file mode 100644
index 000000000..495f1a98c
--- /dev/null
+++ b/client/src/standalone/embed-player-api/definitions.ts
@@ -0,0 +1,25 @@
1export type EventHandler<T> = (ev: T) => void
2
3export type PlayerEventType =
4 'pause' | 'play' |
5 'playbackStatusUpdate' |
6 'playbackStatusChange' |
7 'resolutionUpdate' |
8 'volumeChange'
9
10export interface PeerTubeResolution {
11 id: any
12 label: string
13 active: boolean
14 height: number
15
16 src?: string
17 width?: number
18}
19
20export type PeerTubeTextTrack = {
21 id: string
22 label: string
23 src: string
24 mode: TextTrackMode
25}