Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

addressed review comments

Nils Ohlmeiercd6a81497894
diff --git a/modules/devices/mediaDeviceHelper.js b/modules/devices/mediaDeviceHelper.js
index d141157877..4bea5654a0 100644
--- a/modules/devices/mediaDeviceHelper.js
+++ b/modules/devices/mediaDeviceHelper.js
@@ -80,7 +80,7 @@ function getNewAudioInputDevice(newDevices, localAudio, newLabel) {
return availableAudioInputDevices[0].deviceId;
}
} else if (selectedAudioInputDevice
- && selectedAudioInputDeviceId !== localAudio.getDeviceId()) {
+ && selectedAudioInputDeviceId !== localAudioDeviceId) {
if (newLabel) {
// If a Firefox user with manual permission prompt chose a different
@@ -132,7 +132,7 @@ function getNewVideoInputDevice(newDevices, localVideo, newLabel) {
return availableVideoInputDevices[0].deviceId;
}
} else if (selectedVideoInputDevice
- && selectedVideoInputDeviceId !== localVideo.getDeviceId()) {
+ && selectedVideoInputDeviceId !== localVideoDeviceId) {
if (newLabel) {
// If a Firefox user with manual permission prompt chose a different