amazon-chime-sdk-android icon indicating copy to clipboard operation
amazon-chime-sdk-android copied to clipboard

Audio selection with multiple Bluetooth devices

Open ribafish opened this issue 4 years ago • 2 comments

Describe the bug When there are multiple Bluetooth audio devices connected to the phone, only the last one added is usable. Even if chooseAudioDevice is called with the first connected BT device, only the last added/connected is used.

To Reproduce Steps to reproduce the behavior: 0. Connect multiple BT audio devices (headphones, speakers, etc.) - doesn't need to be before the call though.

  1. Connect to a meeting
  2. Click on select audio devices
  3. Select the not-last (first) connected BT device as audio source
  4. Get output/input from last connected BT device even though it was not chosen

Expected behavior Expected behavior is that the chosen BT device is used regardless of when it was connected to.

Test environment Info (please complete the following information):

  • Devices: Samsung S8 [Android 9 API 28], Samsung Note 9 [Android 10, API 29]
  • Version amazon-chime-sdk: 0.7.1 and 0.5.3
  • Version amazon-chime-sdk-media: 0.6.1 and 0.5.1

Additional context Looking at the source code, it seems the issue lies in the fact that chime SDK is selecting devices only based on type, not on actual device chosen.

ribafish avatar Aug 20 '20 12:08 ribafish

It looks like we currently don't support this feature. We only set route and I believe OS will determine the device that will be used for bluetooth. I'll add enhancement label and we'll come up with better solution.

hokyungh avatar Aug 27 '20 03:08 hokyungh

That is true. I guess a better issue title would be to change it to Audio device selection with multiple devices of the same type

ribafish avatar Aug 27 '20 06:08 ribafish