mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
When Earpiece or Speaker audio route is requested, set the capture device to Micrphone
This commit is contained in:
parent
9059abbc06
commit
2be69da8a4
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ class AudioRouteUtils {
|
|||
applyAudioRouteChange(call, (arrayListOf(AudioDevice.Type.Headphones, AudioDevice.Type.Headset)), false)
|
||||
}
|
||||
}
|
||||
AudioDevice.Type.Earpiece, AudioDevice.Type.Speaker -> {
|
||||
Log.i("[Audio Route Helper] Audio route requested to Earpice or speaker, setting input to Microphone")
|
||||
applyAudioRouteChange(call, (arrayListOf(AudioDevice.Type.Microphone)), false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue