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/player.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/standalone/player/player.ts') 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