Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(desktop_sharing): if remote control is disabled

hristoterezovb869e53713b9
diff --git a/conference.js b/conference.js
index a0fc894d2f..bb691a3464 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) {