AgoraIO / Docs-Source

A repository for the Agora Docs source content.
MIT License
20 stars 11 forks source link

Audio route automatically updates from speaker to ear piece after muting local user in channel(Android sdk version 4.2.2) #1463

Closed HyperLightAlex closed 7 months ago

HyperLightAlex commented 1 year ago

As the title suggests, there seems to be an issue where if you initially set up the rtc engine with: setDefaultAudioRoutetoSpeakerphone(true) to enable audio to be routed to the speakerphone, if the local user mutes themselves or becomes muted, then the audio will be rerouted to the earpiece for the duration of the local user being muted. The audio route resumes though the speakerphone after the user is unmuted

setting setDefaultAudioRoutetoSpeakerphone(true) again after calling muteRemoteAudioStream(<playerUId>, true) to mute the player/local user seems to fix the problem, but this 'fix' seems unnecessary to have to use and the root issue should be resolved instead

billy-the-fish commented 1 year ago

Nice, add to https://docs.agora.io/en/video-calling/develop/product-workflow?platform=web please.

HyperLightAlex commented 7 months ago

@billy-the-fish @nirm2009 has there been any update on this?

saudsami commented 7 months ago

Hi @HyperLightAlex Have you tried upgrading to the latest version of the SDK?

HyperLightAlex commented 7 months ago

I am testing today, but from preliminary inspection it seems like the issue may have been resolved. I will comment results after more thorough testing

HyperLightAlex commented 7 months ago

Its seems as though this issues is fixed on the latest version(4.3.0 at the time of testing)

saudsami commented 7 months ago

Thanks for the update. I will close this issue.