Check BT device capabilities before choosing output device
This commit is contained in:
parent
e1dc8ad8c2
commit
16b5ff4ee5
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ class ControlsViewModel : ViewModel() {
|
|||
|
||||
fun forceBluetoothAudioRoute() {
|
||||
for (audioDevice in coreContext.core.audioDevices) {
|
||||
if (audioDevice.type == AudioDevice.Type.Bluetooth) {
|
||||
if ((audioDevice.type == AudioDevice.Type.Bluetooth) && audioDevice.hasCapability(AudioDevice.Capabilities.CapabilityPlay)) {
|
||||
Log.i("[Call] Found bluetooth audio device [${audioDevice.deviceName}], routing audio to it")
|
||||
coreContext.core.outputAudioDevice = audioDevice
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue