keep jitis circle

This commit is contained in:
_Bastler 2021-10-22 09:40:16 +02:00
parent f984897e80
commit 89d8180cfe

View File

@ -1843,8 +1843,16 @@ export class GameScene extends DirtyScene {
const jitsiWidth = allProps.get("jitsiWidth") as number | undefined; const jitsiWidth = allProps.get("jitsiWidth") as number | undefined;
jitsiFactory.start(roomName, this.playerName, jwt, jitsiConfig, jitsiInterfaceConfig, jitsiUrl, jitsiWidth); jitsiFactory.start(roomName, this.playerName, jwt, jitsiConfig, jitsiInterfaceConfig, jitsiUrl, jitsiWidth);
const jitsiKeepCircle = allProps.get("jitsiKeepCircle") as boolean | false;
if (!jitsiKeepCircle) {
this.connection?.setSilent(true); this.connection?.setSilent(true);
mediaManager.hideGameOverlay(); mediaManager.hideGameOverlay();
} else {
const silent = this.gameMap.getCurrentProperties().get("silent");
this.connection?.setSilent(!!silent);
}
analyticsClient.enteredJitsi(roomName, this.room.id); analyticsClient.enteredJitsi(roomName, this.room.id);
//permit to stop jitsi when user close iframe //permit to stop jitsi when user close iframe