twilio / audioswitch

An Android audio management library for real-time communication apps.
Apache License 2.0
160 stars 49 forks source link

wrong audio output #155

Closed saberzakhama closed 7 months ago

saberzakhama commented 9 months ago

I'm using the last version of twilio audio switch. I'm calling library from java code to change priority like this

           audioSwitch = new AudioSwitch(context, true, focusChange -> {
                        }, new ArrayList<>(Arrays.asList(AudioDevice.BluetoothHeadset.class, AudioDevice.WiredHeadset.class,
                                AudioDevice.Speakerphone.class,AudioDevice.Earpiece.class)));

When testing video call on my pixel 7 ( android 13), audio output is earpiece and the bottom speaker is not working.

How can I fix this issue please. Thanks

ocarevs commented 8 months ago

Hey @saberzakhama are you starting and activating AudioSwitch? audioSwitch.start(listener: AudioDeviceChangeListener) audioSwitch.activate()

afalls-twilio commented 7 months ago

Closing due to inactivity.