Browse Source

fix(conference): do not mute when screen sharing

Screen sharing video should not be muted if video input device is
disconnected.
master
paweldomas 8 years ago
parent
commit
6655ae5a84
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      conference.js

+ 4
- 3
conference.js View File

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
                 }));

Loading…
Cancel
Save