fix(conference): do not mute when screen sharing

Screen sharing video should not be muted if video input device is
disconnected.
This commit is contained in:
paweldomas 2017-06-23 14:03:10 -05:00 committed by virtuacoplenny
parent c4c100e26a
commit 6655ae5a84
1 changed files with 4 additions and 3 deletions

View File

@ -2018,9 +2018,10 @@ export default {
// If video was muted before, or we unplugged current device // If video was muted before, or we unplugged current device
// and selected new one, then mute new video track. // and selected new one, then mute new video track.
if (videoWasMuted || if (!this.isSharingScreen &&
(videoWasMuted ||
currentDevices.videoinput.length > currentDevices.videoinput.length >
availableVideoInputDevices.length) { availableVideoInputDevices.length)) {
muteLocalVideo(true); muteLocalVideo(true);
} }
})); }));