Hiding cam details when entering a Jisti room
This commit is contained in:
parent
0df6f78e6b
commit
f70ba1411a
@ -30,6 +30,7 @@ import GameObject = Phaser.GameObjects.GameObject;
|
|||||||
import FILE_LOAD_ERROR = Phaser.Loader.Events.FILE_LOAD_ERROR;
|
import FILE_LOAD_ERROR = Phaser.Loader.Events.FILE_LOAD_ERROR;
|
||||||
import {GameMap} from "./GameMap";
|
import {GameMap} from "./GameMap";
|
||||||
import {CoWebsiteManager} from "../../WebRtc/CoWebsiteManager";
|
import {CoWebsiteManager} from "../../WebRtc/CoWebsiteManager";
|
||||||
|
import {mediaManager} from "../../WebRtc/MediaManager";
|
||||||
|
|
||||||
|
|
||||||
export enum Textures {
|
export enum Textures {
|
||||||
@ -429,6 +430,7 @@ export class GameScene extends Phaser.Scene implements CenterListener {
|
|||||||
this.connection.setSilent(false);
|
this.connection.setSilent(false);
|
||||||
jitsiApi?.dispose();
|
jitsiApi?.dispose();
|
||||||
CoWebsiteManager.closeCoWebsite();
|
CoWebsiteManager.closeCoWebsite();
|
||||||
|
mediaManager.showGameOverlay();
|
||||||
} else {
|
} else {
|
||||||
CoWebsiteManager.insertCoWebsite((cowebsiteDiv => {
|
CoWebsiteManager.insertCoWebsite((cowebsiteDiv => {
|
||||||
const domain = JITSI_URL;
|
const domain = JITSI_URL;
|
||||||
@ -449,6 +451,7 @@ export class GameScene extends Phaser.Scene implements CenterListener {
|
|||||||
jitsiApi.executeCommand('displayName', gameManager.getPlayerName());
|
jitsiApi.executeCommand('displayName', gameManager.getPlayerName());
|
||||||
}));
|
}));
|
||||||
this.connection.setSilent(true);
|
this.connection.setSilent(true);
|
||||||
|
mediaManager.hideGameOverlay();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -132,6 +132,11 @@ export class MediaManager {
|
|||||||
gameOverlay.classList.add('active');
|
gameOverlay.classList.add('active');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public hideGameOverlay(){
|
||||||
|
const gameOverlay = this.getElementByIdOrFail('game-overlay');
|
||||||
|
gameOverlay.classList.remove('active');
|
||||||
|
}
|
||||||
|
|
||||||
private enableCamera() {
|
private enableCamera() {
|
||||||
this.cinemaClose.style.display = "none";
|
this.cinemaClose.style.display = "none";
|
||||||
this.cinemaBtn.classList.remove("disabled");
|
this.cinemaBtn.classList.remove("disabled");
|
||||||
|
Loading…
Reference in New Issue
Block a user