Jitsi cowebsite close on hangup

This commit is contained in:
Alexis Faizeau
2022-01-18 14:37:35 +01:00
parent a4b4710f87
commit b9ca630a15
2 changed files with 62 additions and 3 deletions
+2 -1
View File
@@ -618,6 +618,7 @@ class CoWebsiteManager {
if (coWebsite.jitsi) {
const gameScene = gameManager.getCurrentGameScene();
gameScene.disableMediaBehaviors();
jitsiFactory.restart();
}
this.currentOperationPromise = this.currentOperationPromise
@@ -676,7 +677,7 @@ class CoWebsiteManager {
() =>
new Promise((resolve) => {
if (coWebsite.jitsi) {
jitsiFactory.stop();
jitsiFactory.destroy();
const gameScene = gameManager.getCurrentGameScene();
gameScene.enableMediaBehaviors();
}