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

Bluetooth devices labels doesn't have any correspondence with the system ones

Open carlol opened this issue 4 years ago • 3 comments

Hi,

thank you in advance for your time.

Describe the bug When I obtain the audio device choices available using the proper method of the Android SDK, MediaDevice label property contains a string not corresponding with the current label I can see if I check the devices using Android's methods, so it is impossible to create a correspondence between android-system BLE detection and chime audio choices.

To Reproduce Steps to reproduce the behavior:

  1. Use BluetoothHeadset#connectedDevices android object to retrieve currently BLE connected devices
  2. Use meetingSession.audioVideo.listAudioDevices() to retrieve currently audio device choices
  3. there aren't any correspondence

Expected behavior Audio device choices label property is equal to the system name property if the device is a BLE or at least there is a way to create a correspondence with the system one.

Logs

Screenshots -> chime 0 = "Nokia 7.2 (Handset)" 1 = "Nokia 7.2 (Speaker)" -> this should be the phone audio 2 = "Nokia 7.2 (Bluetooth)" -> system 0 = "SoundCore Boost" 1 = "M202"

Test environment Info (please complete the following information):

  • Device: [e.g. Pixel3]
  • OS: [e.g. Android 10]
  • Version amazon-chime-sdk: 0.11.0
  • Version amazon-chime-sdk-media: 0.11.0

carlol avatar Feb 25 '21 11:02 carlol

Thank you for reporting.

Are you trying to connect multiple bluetooth devices and check which device is getting audio?

If this is single device, the device has bluetooth as type, so you could easily map.

We currently read from Android API without remapping to BluetoothHeadset, so this could be new feature request.

However, it could be very tricky with multiple bluetooth devices present, especially when none of bluetooth devices are active.

hokyungh avatar Feb 26 '21 03:02 hokyungh

Hi, in my case two bluetooth devices are connected but only one of theme has "Bluetooth" in its label, the other one contains "Handset". What could be the distinction provided by the internal logic?

Best regards

carlol avatar Feb 26 '21 10:02 carlol

Could you check if Handset does map to one of your bluetooth device? For Android, I don't think it allows you to have multiple bluetooth devices with calls. You can have multiple connection, but audio will route through only one and our DefaultDeviceController should return only one.

You can use isAudioActive to find out which device is active, but if none of are active, it might be very tricky.

You can see our logic of listing audio devices from listAudioDevices.

Thanks.

hokyungh avatar Feb 26 '21 23:02 hokyungh

Closing this old ticket as there's been no further activity. Please feel free to reopen or submit a support case in AWS console.

yochum avatar May 31 '24 15:05 yochum