diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-17 14:20:43 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-18 10:14:23 +0100 |
commit | 6377a9f2b0f762be9af61f46b4f0a9efd0c4b7c2 (patch) | |
tree | c632833f4275df8d75a6df55fe8673a7dec7c0ec /client/src/standalone/player | |
parent | c3b937916711136cb1ce974f769205439a3d2e04 (diff) | |
download | PeerTube-6377a9f2b0f762be9af61f46b4f0a9efd0c4b7c2.tar.gz PeerTube-6377a9f2b0f762be9af61f46b4f0a9efd0c4b7c2.tar.zst PeerTube-6377a9f2b0f762be9af61f46b4f0a9efd0c4b7c2.zip |
Fix test embed page
Diffstat (limited to 'client/src/standalone/player')
-rw-r--r-- | client/src/standalone/player/definitions.ts | 8 | ||||
-rw-r--r-- | client/src/standalone/player/player.ts | 5 |
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 | ||
9 | export interface PeerTubeResolution { | 10 | export 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 | /** |