Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(deviceChange):Dont create video track if muted
Hristo Terezov007183c1510f
diff --git a/conference.js b/conference.jsindex b04f5d38c1..0f9bb4c08a 100644--- a/conference.js+++ b/conference.js@@ -2604,6 +2604,20 @@ export default {// https://bugs.chromium.org/p/chromium/issues/detail?id=997689const hasDefaultMicChanged = newDevices.audioinput === 'default';+ // This is the case when the local video is muted and a preferred device is connected.+ if (requestedInput.video && this.isLocalVideoMuted()) {+ // We want to avoid creating a new video track in order to prevent turning on the camera.+ requestedInput.video = false;+ APP.store.dispatch(updateSettings({ // Update the current selected camera for the device selection dialog.+ cameraDeviceId: newDevices.videoinput+ }));+ delete newDevices.videoinput;++ // Removing the current video track in order to force the unmute to select the preferred device.+ this.useVideoStream(null);++ }+promises.push(mediaDeviceHelper.createLocalTracksAfterDeviceListChanged(createLocalTracksF,