Fix: enabling autoreduce for Jitsi rooms

develop_2021
Ludwig Behm 2 years ago
parent 287934f7c4
commit fa51666d6f
  1. 2
      front/src/Phaser/Game/GameScene.ts

@ -1228,6 +1228,7 @@ export class GameScene extends ResizableScene implements CenterListener {
}
public startJitsi(roomName: string, jwt?: string): void {
audioManager.decreaseVolume();
const jitsiUrl = this.getMapProperty('jitsiUrl', 'string', JITSI_URL);
jitsiFactory.start(jitsiUrl, roomName, this.playerName, jwt);
this.connection.setSilent(true);
@ -1240,6 +1241,7 @@ export class GameScene extends ResizableScene implements CenterListener {
}
public stopJitsi(): void {
audioManager.restoreVolume();
this.connection.setSilent(false);
jitsiFactory.stop();
mediaManager.showGameOverlay();

Loading…
Cancel
Save