keep jitis circle

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

View File

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