Camera was not properly closed in EnableCameraScene
This commit is contained in:
parent
4d90d4b50b
commit
c739037bc4
2 changed files with 28 additions and 11 deletions
|
@ -266,6 +266,9 @@ export class EnableCameraScene extends Phaser.Scene {
|
|||
this.soundMeter.stop();
|
||||
window.removeEventListener('resize', this.repositionCallback);
|
||||
|
||||
mediaManager.stopCamera();
|
||||
mediaManager.stopMicrophone();
|
||||
|
||||
// Do we have a start URL in the address bar? If so, let's redirect to this address
|
||||
const instanceAndMapUrl = this.findMapUrl();
|
||||
if (instanceAndMapUrl !== null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue