Skip to content

Commit

Permalink
fix(jitsi): fixed #492, arcore permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mwfarb committed Aug 16, 2022
1 parent 35b1515 commit dc12cf0
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/arena.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,6 @@ export class Arena {
}
SideMenu.setupIcons();

if (this.skipav) {
// Directly initialize Jitsi videoconferencing
this.Jitsi = ARENAJitsi.init(this.jitsiHost);
} else if (!this.noav && this.isJitsiPermitted()) {
window.setupAV(() => {
// Initialize Jitsi videoconferencing after A/V setup window
this.Jitsi = ARENAJitsi.init(this.jitsiHost);
});
}

// TODO (mwfarb): fix race condition in slow networks; too mitigate, warn user for now
if (this.health) {
this.health.removeError('slow.network');
Expand Down Expand Up @@ -766,6 +756,14 @@ export class Arena {
ARENAWebARUtils.enterARNonWebXR();
}
});
} else if (this.skipav) {
// Directly initialize Jitsi videoconferencing
this.Jitsi = ARENAJitsi.init(this.jitsiHost);
} else if (!this.noav && this.isJitsiPermitted()) {
window.setupAV(() => {
// Initialize Jitsi videoconferencing after A/V setup window
this.Jitsi = ARENAJitsi.init(this.jitsiHost);
});
}

console.info(
Expand Down

0 comments on commit dc12cf0

Please sign in to comment.