Agora-Flutter-SDK
Agora-Flutter-SDK copied to clipboard
[FEATURE] change AudioOutputRoute
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.
You can contact our developer support. It needs to be supported by the native layer first.
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.
If you still face this issue, please try upgrading to the latest version to see if it works or not.
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.
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.