|
@@ -80,7 +80,7 @@ function getNewAudioInputDevice(newDevices, localAudio, newLabel) {
|
80
|
80
|
return availableAudioInputDevices[0].deviceId;
|
81
|
81
|
}
|
82
|
82
|
} else if (selectedAudioInputDevice
|
83
|
|
- && selectedAudioInputDeviceId !== localAudio.getDeviceId()) {
|
|
83
|
+ && selectedAudioInputDeviceId !== localAudioDeviceId) {
|
84
|
84
|
|
85
|
85
|
if (newLabel) {
|
86
|
86
|
// If a Firefox user with manual permission prompt chose a different
|
|
@@ -132,7 +132,7 @@ function getNewVideoInputDevice(newDevices, localVideo, newLabel) {
|
132
|
132
|
return availableVideoInputDevices[0].deviceId;
|
133
|
133
|
}
|
134
|
134
|
} else if (selectedVideoInputDevice
|
135
|
|
- && selectedVideoInputDeviceId !== localVideo.getDeviceId()) {
|
|
135
|
+ && selectedVideoInputDeviceId !== localVideoDeviceId) {
|
136
|
136
|
|
137
|
137
|
if (newLabel) {
|
138
|
138
|
// If a Firefox user with manual permission prompt chose a different
|