X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fstandalone%2Fplayer%2Fplayer.ts;h=71c41295076db65bdc1a8e36c1e97510deaa6007;hb=b515c98c6b674ee5632f3f76ad4fe00e147d995e;hp=91a5e73f3e921de349817f6de2c06d42af306258;hpb=902aa3a099638b2198c24c076c61577a8435277b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/standalone/player/player.ts b/client/src/standalone/player/player.ts index 91a5e73f3..71c412950 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') } /** @@ -191,4 +192,4 @@ export class PeerTubePlayer { } // put it on the window as well as the export -window[ 'PeerTubePlayer' ] = PeerTubePlayer +(window[ 'PeerTubePlayer' ] as any) = PeerTubePlayer