소스 검색

addressed review comments

master
Nils Ohlmeier 3 년 전
부모
커밋
cd6a814978
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      modules/devices/mediaDeviceHelper.js

+ 2
- 2
modules/devices/mediaDeviceHelper.js 파일 보기

@@ -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

Loading…
취소
저장