Procházet zdrojové kódy

fix(conference): do not mute when screen sharing

Screen sharing video should not be muted if video input device is
disconnected.
j8
paweldomas před 7 roky
rodič
revize
6655ae5a84
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4
    3
      conference.js

+ 4
- 3
conference.js Zobrazit soubor

2018
 
2018
 
2019
                     // If video was muted before, or we unplugged current device
2019
                     // If video was muted before, or we unplugged current device
2020
                     // and selected new one, then mute new video track.
2020
                     // and selected new one, then mute new video track.
2021
-                    if (videoWasMuted ||
2022
-                        currentDevices.videoinput.length >
2023
-                        availableVideoInputDevices.length) {
2021
+                    if (!this.isSharingScreen &&
2022
+                        (videoWasMuted ||
2023
+                            currentDevices.videoinput.length >
2024
+                                availableVideoInputDevices.length)) {
2024
                         muteLocalVideo(true);
2025
                         muteLocalVideo(true);
2025
                     }
2026
                     }
2026
                 }));
2027
                 }));

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