diff --git a/conference.js b/conference.js index a0fc894d2..bb691a346 100644 --- a/conference.js +++ b/conference.js @@ -1416,7 +1416,12 @@ export default { _turnScreenSharingOff(didHaveVideo, wasVideoMuted) { this._untoggleScreenSharing = null; this.videoSwitchInProgress = true; - APP.remoteControl.receiver.stop(); + const { receiver } = APP.remoteControl; + + if (receiver) { + receiver.stop(); + } + let promise = null; if (didHaveVideo) {