Merge branch 'develop' of github.com:thecodingmachine/workadventure into develop

This commit is contained in:
_Bastler
2022-05-09 07:58:53 +02:00
15 changed files with 113 additions and 79 deletions
+6 -1
View File
@@ -227,6 +227,7 @@ export class GameScene extends DirtyScene {
private jitsiDominantSpeaker: boolean = false;
private jitsiParticipantsCount: number = 0;
public readonly superLoad: SuperLoaderPlugin;
private allowProximityMeeting: boolean = true;
constructor(private room: Room, MapUrlFile: string, customKey?: string | undefined) {
super({
@@ -1140,12 +1141,14 @@ export class GameScene extends DirtyScene {
this.iframeSubscriptionList.push(
iframeListener.disablePlayerProximityMeetingStream.subscribe(() => {
this.allowProximityMeeting = false;
this.disableMediaBehaviors();
})
);
this.iframeSubscriptionList.push(
iframeListener.enablePlayerProximityMeetingStream.subscribe(() => {
this.allowProximityMeeting = true;
this.enableMediaBehaviors();
})
);
@@ -2215,7 +2218,9 @@ export class GameScene extends DirtyScene {
}
public enableMediaBehaviors() {
mediaManager.showMyCamera();
if (this.allowProximityMeeting) {
mediaManager.showMyCamera();
}
}
public disableMediaBehaviors() {