aws / amazon-chime-sdk-android

An Android client library for integrating multi-party communications powered by the Amazon Chime service.
https://aws.amazon.com/chime/chime-sdk/
Apache License 2.0
105 stars 49 forks source link

Issues with Audio Routing to Bluetooth Headphones on Pixel #614

Closed dajver closed 1 month ago

dajver commented 6 months ago

Describe the bug We're encountering an issue where audio from Amazon Chime SDK calls is not being routed to Bluetooth headphones even after manually selecting the Bluetooth device via the audioVideo.chooseAudioDevice() method. The expected behavior is for the audio to be output through the connected Bluetooth headphones, but instead, the audio continues to play through the device's built-in speaker. This issue occurs consistently on Pixel devices, while on Samsung devices, the audio routing behaves as expected.

To Reproduce Steps to reproduce the behavior:

  1. Start with a Pixel device with Bluetooth headphones connected and verified working (e.g., audio plays through headphones when using other apps like YouTube).
  2. Initiate a Chime SDK call.
  3. Use audioVideo.listAudioDevices() to list available devices and audioVideo.chooseAudioDevice() to select the Bluetooth headphones.
  4. Observe that audio output is still routed through the device's built-in speaker instead of the Bluetooth headphones.

Expected behavior Audio should be routed to the selected audio device, in this case, Bluetooth headphones, after manually selecting the device through the SDK's chooseAudioDevice() method.

Test environment Info (please complete the following information):

linsang21 commented 5 months ago

Hi @dajver, I wasn't able to reproduce the issue using the demo app. Is it possible for you to provide the reproduce steps on the demo app, along with logs / video recording? That will be helpful. Also can you share what bluetooth device you were testing? Does this happen on other headphone?