amazon-chime-sdk-android
amazon-chime-sdk-android copied to clipboard
Audio selection with multiple Bluetooth devices
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.
- Connect to a meeting
- Click on select audio devices
- Select the not-last (first) connected BT device as audio source
- 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.
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.
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