Sfoglia il codice sorgente

Merge pull request #2091 from jitsi/remote_control_disable

fix(desktop_sharing): if remote control is disabled
j8
virtuacoplenny 8 anni fa
parent
commit
40377634f2
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6
    1
      conference.js

+ 6
- 1
conference.js Vedi File

@@ -1416,7 +1416,12 @@ export default {
1416 1416
     _turnScreenSharingOff(didHaveVideo, wasVideoMuted) {
1417 1417
         this._untoggleScreenSharing = null;
1418 1418
         this.videoSwitchInProgress = true;
1419
-        APP.remoteControl.receiver.stop();
1419
+        const { receiver } = APP.remoteControl;
1420
+
1421
+        if (receiver) {
1422
+            receiver.stop();
1423
+        }
1424
+
1420 1425
         let promise = null;
1421 1426
 
1422 1427
         if (didHaveVideo) {

Loading…
Annulla
Salva