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…
Reference in a new issue