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
commit 6f6873e870
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 31 deletions

View file

@ -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) {