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

[FEATURE] change AudioOutputRoute

Open Faaatman opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Change AudioOutputRoute depending on what is available (ex. Bluetooth, EarPiece)

Describe the solution you'd like

  • callback function that retrieves the available AudioOutput routes. (ex. RtcEnginge.availableAudioOutputRoutes())

  • function that chooses one of the available AudioOutput routes. (ex. RtcEngine.setAudioOutputRoute(AudioOutputRouting.HeadsetBluetooth))

Describe alternatives you've considered I can listen to audioRouteChanged but that doesn't solve the problem fully.

Faaatman avatar Nov 22 '21 08:11 Faaatman

You can contact our developer support. It needs to be supported by the native layer first.

LichKing-2234 avatar Nov 24 '21 06:11 LichKing-2234

Oh ok! Is there a way to get the Current selected Audio Route before waiting for the route to change?

EDIT: Listening to the audioRouteChanged gives the first route.

Faaatman avatar Nov 28 '21 13:11 Faaatman

If you still face this issue, please try upgrading to the latest version to see if it works or not.

littleGnAl avatar Dec 07 '23 09:12 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 Dec 21 '23 09:12 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 28 '23 10:12 github-actions[bot]