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
103 stars 53 forks source link

Audio output device is not switching to built-in speaker in android 13 One plus 10 Pro and real me 9 #588

Open PatelJa02 opened 8 months ago

PatelJa02 commented 8 months ago

Audio output device is not switching to build in speaker Upon selecting the built in speaker in android 13, currently audio output is not changing. AudioVideoFacade instance's active device actually resets to handset even after setting different device by "chooseAudioDevice" method. Below is the link of video: Link: https://stack.rishabhsoft.com/pydio/public/dbfc59fd2ea08d4

As shown in video, the output of audio is set to handset, upon changing the same, it is auto setting to handset.

Steps to reproduce the behavior:

  1. Click speaker icon
  2. Select built in speaker media device
  3. Again click on speaker icon
  4. See still handset is selected

Expected behavior : Built in speaker should be selected and audio should be moved on speaker.

Logs : Please check the below link for logs : https://stack.rishabhsoft.com/pydio/public/1d66414dd47b652

Test environment Info :

pragadeeshNIS commented 7 months ago

@PatelJa02 I am also facing the same issue while integrating the Bluetooth device and the built-in speaker. Have you found any solution for this?

yanpatel commented 7 months ago

Hello @pragadeeshNIS ,

I have integrated the connectionservice in chime, So to manage the audio route use below function if you have integrated self managed connection service ConnectionService()#setAudioRoute(route:Int). This will fix the issue.

pragadeeshNIS commented 7 months ago

@PatelJa02 thanks for the support. I will check it out.

linsang21 commented 6 months ago

Thanks for reporting the issue, will look into and post updates. In the meantime, might try @yanpatel's workaround.