twilio / audioswitch

An Android audio management library for real-time communication apps.
Apache License 2.0
163 stars 50 forks source link

Priority problem between WiredHeadset and Earpiece #96

Closed patnh2 closed 3 years ago

patnh2 commented 3 years ago

Describe the bug I tested on phone with wired headset (no bluetooth headset) I changed priority.

BluetoothHeadset -> Earpiece -> WiredHeadset -> Speakerphone

and no device selected. I expect audio goes into Earpiece. but it goes into WiredHeadset. how can audio go into Earpiece on the phone with wired headset?

To Reproduce Steps to reproduce the behavior:

  1. Connect wired headset (no bluetooth headset)
  2. Changed priority (BluetoothHeadset -> Earpiece -> WiredHeadset -> Speakerphone)
  3. No device selected
  4. Audio goes into WiredHeadset

Expected behavior Audio goes into Earpiece

Actual behavior Audio goes into WiredHeadset

AudioSwitch Version

Android Device (please complete the following information):

Alton09 commented 3 years ago

Thanks for reaching out @patnh2 ! This is by design, such that whenever a WiredHeadset is plugged in it will override the earpiece. I can mark this one as an enhancement and discuss with my team about adding support for this.

patnh2 commented 3 years ago

Thanks for your reply @Alton09 !!