client-sdk-flutter
client-sdk-flutter copied to clipboard
[bug] Android loudspeaker never being used during calls
Describe the bug I'm working on an app that deals with videocalls, and so I'd like to use the loudspeaker while on a call, rather than using the earpiece. Unfortunately, I've been trying to switch the audioOutput for Android (after connection is established) and it just won't work. I've even tested creating a button that alternates through the two devices (earpiece and speaker), and while "selectedAudioOutput" does change, there's no change on where the sound is coming from or on the volume.
To Reproduce Just connect on a call and try to use Hardware.instance.selectAudioOutput() to change the output device.
Expected behavior Audio starts coming from the loudspeaker instead of earpiece.
Platform information
- Flutter version: 3.16.4
- Plugin version: 1.5.6
- Flutter target OS: Android
- Flutter target OS version: Android 14
- Flutter console log: Nothing weird going on.