Audio source switching not working properly when using multiple Bluetooth devices
Describe the bug
When using the listAudioDevices() functionality on the audioVideo property of the meeting session we get back a list of all audio devices available. If the user has multiple Bluetooth devices connected, you get all of them on that list of devices. If the user then chooses one of them using chooseAudioDevice(mediaDevice:) the choice isn't actually respected and instead the last Bluetooth device connected to the phone is used.
Expected behavior
When calling chooseAudioDevice(mediaDevice:) with a specific Bluetooth device that actual device will be used as audio input/output instead of the last connected Bluetooth device.
Test environment Info:
- Device: iPhone 8
- OS: 14.1
- Version AmazonChimeSDK: 0.11.1
- Version AmazonChimeSDKMedia: 0.7.1
Additional context
Besides fixing this bug the SDK should also include the functionality for returning which device from the listAudioDevices() list is actually currently used so that we can clearly communicate to the user what device they are currently using. Not sure if this needs to be a separate feature request though.
This is definitely sounds like a bug. We'll put bug label for it. For currently used device, we have implementation ready, so in the next release, we'll have the feature for get currently used device.
Thanks!
@r00li get current audio device is released. We'll keep this thread open for the other issue, which is multiple bluetooth device support.