aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/player
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/standalone/player')
-rw-r--r--client/src/standalone/player/definitions.ts8
-rw-r--r--client/src/standalone/player/player.ts5
2 files changed, 9 insertions, 4 deletions
diff --git a/client/src/standalone/player/definitions.ts b/client/src/standalone/player/definitions.ts
index afd10541b..9fe903260 100644
--- a/client/src/standalone/player/definitions.ts
+++ b/client/src/standalone/player/definitions.ts
@@ -4,11 +4,15 @@ export type PlayerEventType =
4 'pause' | 'play' | 4 'pause' | 'play' |
5 'playbackStatusUpdate' | 5 'playbackStatusUpdate' |
6 'playbackStatusChange' | 6 'playbackStatusChange' |
7 'resolutionUpdate' 7 'resolutionUpdate' |
8 'volumeChange'
8 9
9export interface PeerTubeResolution { 10export interface PeerTubeResolution {
10 id: any 11 id: any
11 label: string 12 label: string
12 src: string
13 active: boolean 13 active: boolean
14 height: number
15
16 src?: string
17 width?: number
14} 18}
diff --git a/client/src/standalone/player/player.ts b/client/src/standalone/player/player.ts
index 91a5e73f3..f33539134 100644
--- a/client/src/standalone/player/player.ts
+++ b/client/src/standalone/player/player.ts
@@ -7,7 +7,8 @@ const PASSTHROUGH_EVENTS = [
7 'play', 7 'play',
8 'playbackStatusUpdate', 8 'playbackStatusUpdate',
9 'playbackStatusChange', 9 'playbackStatusChange',
10 'resolutionUpdate' 10 'resolutionUpdate',
11 'volumeChange'
11] 12]
12 13
13/** 14/**
@@ -100,7 +101,7 @@ export class PeerTubePlayer {
100 * @param value A number from 0 to 1 101 * @param value A number from 0 to 1
101 */ 102 */
102 async getVolume (): Promise<number> { 103 async getVolume (): Promise<number> {
103 return this.sendMessage<void, number>('setVolume') 104 return this.sendMessage<void, number>('getVolume')
104 } 105 }
105 106
106 /** 107 /**