Merge pull request #251 from thecodingmachine/fix_camera_stop

Camera was not properly closed in EnableCameraScene
This commit is contained in:
David Négrier
2020-08-31 15:31:33 +02:00
committed by GitHub
5 changed files with 62 additions and 31 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) {