8000 fix: remove setPreferredInputDevice when getUserAduio. (#1808) · flutter-webrtc/flutter-webrtc@676d9e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 676d9e4

Browse files
authored
fix: remove setPreferredInputDevice when getUserAduio. (#1808)
1 parent 9a92d0b commit 676d9e4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/GetUserMediaImpl.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -365,17 +365,6 @@ private ConstraintsMap getUserAudio(ConstraintsMap constraints, MediaStream stre
365365
String trackId = stateProvider.getNextTrackUUID();
366366
PeerConnectionFactory pcFactory = stateProvider.getPeerConnectionFactory();
367367
AudioSource audioSource = pcFactory.createAudioSource(audioConstraints);
368-
369-
if (deviceId != null) {
370-
try {
371-
if (VERSION.SDK_INT >= VERSION_CODES.M) {
372-
setPreferredInputDevice(deviceId);
373-
}
374-
} catch (Exception e) {
375-
Log.e(TAG, "setPreferredInputDevice failed", e);
376-
}
377-
}
378-
379368
AudioTrack track = pcFactory.createAudioTrack(trackId, audioSource);
380369
stream.addTrack(track);
381370

0 commit comments

Comments
 (0)
0