Procházet zdrojové kódy

fix(desktop_sharing): if remote control is disabled

j8
hristoterezov před 8 roky
rodič
revize
b869e53713
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6
    1
      conference.js

+ 6
- 1
conference.js Zobrazit soubor

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

Načítá se…
Zrušit
Uložit