Selaa lähdekoodia

fix(desktop_sharing): if remote control is disabled

j8
hristoterezov 8 vuotta sitten
vanhempi
commit
b869e53713
1 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 6
    1
      conference.js

+ 6
- 1
conference.js Näytä tiedosto

@@ -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…
Peruuta
Tallenna