Fix: enabling autoreduce for Jitsi rooms
This commit is contained in:
parent
287934f7c4
commit
fa51666d6f
|
@ -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…
Reference in New Issue