Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Oct 26, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@PatelJa02
Copy link

PatelJa02 commented Oct 26, 2023

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 :

  • Device: One plus 10 Pro and real me 9.
  • OS: Android 13
  • Version amazon-chime-sdk: 0.18.3
  • Version amazon-chime-sdk-media: 0.18.3
@pragadeeshNIS
Copy link

@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
Copy link

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
Copy link

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

@linsang21
Copy link
Contributor

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

@linsang21 linsang21 added the bug Something isn't working label Jan 2, 2024
@sumit-s-fltcase
Copy link

I am having same issue with tablet,
Make: Oukitel
Model: RT3
Android: 13
Audio from other sources are not playing in the tablet built in speakers. Does anyone let me know how to fix this.

@yanpatel
Copy link

I am having same issue with tablet, Make: Oukitel Model: RT3 Android: 13 Audio from other sources are not playing in the tablet built in speakers. Does anyone let me know how to fix this.

If you're using a self-managed ConnectionService, you might be able to resolve this issue by explicitly managing the audio route using the setAudioRoute(route: Int) method.

@sumit-s-fltcase
Copy link

sumit-s-fltcase commented Sep 24, 2024

I am having same issue with tablet, Make: Oukitel Model: RT3 Android: 13 Audio from other sources are not playing in the tablet built in speakers. Does anyone let me know how to fix this.

If you're using a self-managed ConnectionService, you might be able to resolve this issue by explicitly managing the audio route using the setAudioRoute(route: Int) method.

I am not using self managed. I am using the same as provided in sample. Only for this model i am not able to get audio on both speaker as well as headset. Wll this val selected = audioClientController.setRoute(route) is coming as true but still audio is not coming. here route for speaker is going as 2 which is AudioClient.SPK_STREAM_ROUTE_SPEAKER. And for headset is is going as 0 as AudioClient.SPK_STREAM_ROUTE_RECEIVER.

@Fatima1990z
Copy link

Do you have the impemetation for your solution setAudioRoute(route: Int)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants