keep jitis circle
This commit is contained in:
parent
f984897e80
commit
89d8180cfe
@ -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();
|
this.scene.wake();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -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);
|
||||||
this.connection?.setSilent(true);
|
|
||||||
mediaManager.hideGameOverlay();
|
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);
|
analyticsClient.enteredJitsi(roomName, this.room.id);
|
||||||
|
|
||||||
//permit to stop jitsi when user close iframe
|
//permit to stop jitsi when user close iframe
|
||||||
|
Loading…
Reference in New Issue
Block a user