mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
When Earpiece or Speaker audio route is requested, set the capture device to Micrphone
This commit is contained in:
parent
b2fa49bccd
commit
8fadb5cb83
1 changed files with 4 additions and 0 deletions
|
|
@ -88,6 +88,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