Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

iOS App Audio after Agora VideoCall only on ear speaker

Open szuch opened this issue 4 years ago • 3 comments

Bug Scenario

  1. My Flutter App on iOS is playing specific videos with audio over loud speaker.
  2. If an agora video call is made (incoming or outgoing) during that time, then this call is also on loud speaker
  3. After ending the call the specific video is resumed. Problem: Now the Videos Audio is coming from the ear piece speaker and not the loud speak anymore, which is wrong.
  4. This is not happening on Android

Expected behaviour After leaving the Agora call the in app audio should resume playing from the load speaker like before the call

Versions

  • Flutter 2.2.3
  • latest agora_rtc_engine: ^4.0.7

Smartphone

  • Device: all iPhones
  • OS: 14.7

Additional info

  • i already tried to call destroy or keep the agora engine after call but with both same behaviour
  • i tried setDefaultAudioRoutetoSpeakerphone(true) and with false but error persists

szuch avatar Sep 28 '21 15:09 szuch

you can refer to this doc https://docs.agora.io/en/Video/set_audio_route_ios?platform=iOS

LichKing-2234 avatar Sep 29 '21 02:09 LichKing-2234

@LichKing-2234 Thanks. I know that part of the docs and im using setDefaultAudioRouteToSpeakerphone and tried setEnableSpeakerphone But the problem is after finishing the call the other audio of the app is still playing ducked. You can hear it but very silent. After investigating the issue i found out that either the agora lib, but more likely the call kit lib are changing the AVAudioSession to their video call needs but after finishing the call these settings are not reset. So i am doing this now manually with a MethodChannel call to iOS.

szuch avatar Sep 30 '21 15:09 szuch

Yes, you can control AVAudioSession by yourself.

LichKing-2234 avatar Oct 14 '21 02:10 LichKing-2234

If you still face issues, please try upgrading to the new version to see if it works for you.

littleGnAl avatar Nov 14 '23 09:11 littleGnAl

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] avatar Nov 28 '23 10:11 github-actions[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

github-actions[bot] avatar Dec 05 '23 11:12 github-actions[bot]