Переглянути джерело

fix(desktop_sharing): if remote control is disabled

j8
hristoterezov 8 роки тому
джерело
коміт
b869e53713
1 змінених файлів з 6 додано та 1 видалено
  1. 6
    1
      conference.js

+ 6
- 1
conference.js Переглянути файл

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

Завантаження…
Відмінити
Зберегти