Implement the new co website system

This commit is contained in:
Alexis Faizeau 2021-10-07 14:44:15 +02:00
parent 1ee0b28f66
commit da8cc661b7
10 changed files with 761 additions and 159 deletions

View file

@ -181,11 +181,17 @@ class JitsiFactory {
}, jitsiWidth);
}
public async stop(): Promise<void> {
public stop() {
if (!this.jitsiApi) {
return;
}
await coWebsiteManager.closeCoWebsite();
const jitsiCoWebsite = coWebsiteManager.searchJitsi();
if (jitsiCoWebsite) {
coWebsiteManager.closeJitsi();
}
this.jitsiApi.removeListener("audioMuteStatusChanged", this.audioCallback);
this.jitsiApi.removeListener("videoMuteStatusChanged", this.videoCallback);
this.jitsiApi?.dispose();