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(devices): Fixes a JS error when no audio/video is selected and there is a device update.
Jaya Allamsetty9ca0ee41b6ca
diff --git a/modules/devices/mediaDeviceHelper.js b/modules/devices/mediaDeviceHelper.jsindex 4bea5654a0..4c5f3bf385 100644--- a/modules/devices/mediaDeviceHelper.js+++ b/modules/devices/mediaDeviceHelper.js@@ -62,7 +62,7 @@ function getNewAudioInputDevice(newDevices, localAudio, newLabel) {const selectedAudioInputDeviceId = getUserSelectedMicDeviceId(APP.store.getState());const selectedAudioInputDevice = availableAudioInputDevices.find(d => d.deviceId === selectedAudioInputDeviceId);- const localAudioDeviceId = localAudio.getDeviceId();+ const localAudioDeviceId = localAudio?.getDeviceId();const localAudioDevice = availableAudioInputDevices.find(d => d.deviceId === localAudioDeviceId);@@ -114,7 +114,7 @@ function getNewVideoInputDevice(newDevices, localVideo, newLabel) {const selectedVideoInputDeviceId = getUserSelectedCameraDeviceId(APP.store.getState());const selectedVideoInputDevice = availableVideoInputDevices.find(d => d.deviceId === selectedVideoInputDeviceId);- const localVideoDeviceId = localVideo.getDeviceId();+ const localVideoDeviceId = localVideo?.getDeviceId();const localVideoDevice = availableVideoInputDevices.find(d => d.deviceId === localVideoDeviceId);