From 6377a9f2b0f762be9af61f46b4f0a9efd0c4b7c2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Dec 2019 14:20:43 +0100 Subject: Fix test embed page --- client/src/standalone/player/definitions.ts | 8 ++++++-- client/src/standalone/player/player.ts | 5 +++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'client/src/standalone/player') 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 = 'pause' | 'play' | 'playbackStatusUpdate' | 'playbackStatusChange' | - 'resolutionUpdate' + 'resolutionUpdate' | + 'volumeChange' export interface PeerTubeResolution { id: any label: string - src: string active: boolean + height: number + + src?: string + width?: number } 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 = [ 'play', 'playbackStatusUpdate', 'playbackStatusChange', - 'resolutionUpdate' + 'resolutionUpdate', + 'volumeChange' ] /** @@ -100,7 +101,7 @@ export class PeerTubePlayer { * @param value A number from 0 to 1 */ async getVolume (): Promise { - return this.sendMessage('setVolume') + return this.sendMessage('getVolume') } /** -- cgit v1.2.3