瀏覽代碼

Merge pull request #2091 from jitsi/remote_control_disable

fix(desktop_sharing): if remote control is disabled
j8
virtuacoplenny 8 年之前
父節點
當前提交
40377634f2
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      conference.js

+ 6
- 1
conference.js 查看文件

@@ -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…
取消
儲存