Closed davidnardya closed 7 months ago
I have started & activated the audioswitch exactly the way you showed here, I have debugged and really seems like I've done everything correctly. Please advise
Here's the activation: `override fun onConnected(call: Call) { audioSwitch.activate()
Log.d(TAG, "Connected")
showToast("Connected")
activeCall = call
}`
Also added it to this function: `fun startAudioSwitch() { /*
Here's the log:
audioDevice name Earpiece audioDevice name Speakerphone audioDeviceNames [Earpiece, Speakerphone] selectedDevice Earpiece(name=Earpiece) selectedAudioDevice Speakerphone(name=Speakerphone) index 1 audioDevice name Earpiece audioDevice name Speakerphone audioSwitch.selectedAudioDevice Speakerphone(name=Speakerphone) audioDeviceNames [Earpiece, Speakerphone] selectedDevice Speakerphone(name=Speakerphone) selectedAudioDevice Earpiece(name=Earpiece) index 0 audioDevice name Earpiece audioDevice name Speakerphone audioSwitch.selectedAudioDevice Earpiece(name=Earpiece) audioDeviceNames [Earpiece, Speakerphone] selectedDevice Earpiece(name=Earpiece) selectedAudioDevice Speakerphone(name=Speakerphone) index 1 audioDevice name Earpiece audioDevice name Speakerphone audioSwitch.selectedAudioDevice Speakerphone(name=Speakerphone)
Yet still when I switch between them the audio is only played through earpiece
I tried using a BT device, so the call starts on the BT device but when I try to switch to earpiece or speaker it also doesn't work
Here's the log:
audioDevice name Earpiece audioDevice name Speakerphone audioDevice name JBL TUNE510BT audioDevice name Earpiece audioDevice name Speakerphone audioDeviceNames [JBL TUNE510B selectedDevice BluetoothHeadse audioDeviceNames [JBL TUNE510B selectedDevice BluetoothHeadse audioDeviceNames [JBL TUNE510B selectedDevice BluetoothHeadse selectedAudioDevice Earpiece(n index 1 audioDevice name JBL TUNE510BT audioDevice name Earpiece audioDevice name Speakerphone audioSwitch.selectedAudioDevic audioDeviceNames [JBL TUNE510B selectedDevice Earpiece(name=E selectedAudioDevice Speakerpho index 2 audioDevice name JBL TUNE510BT audioDevice name Earpiece audioDevice name Speakerphone audioSwitch.selectedAudioDevic audioDeviceNames [JBL TUNE510B selectedDevice Speakerphone(na audioDevice name Earpiece audioDevice name Speakerphone
Please advise
Description
In an active call, I try to change the device between speaker and earpiece and while in the logs and debugging it looks like the device is switched, in the conversation the sound come only through the earpiece, never through the loud speaker. I have made sure I use the same instance of AudioSwitch
Steps to Reproduce
Code
Expected Behavior
Able to switch between devices
Actual Behavior
Sound only plays through earpiece
Reproduces How Often
Every time
Twilio Call SID(s)
CA1bcd25be4d7e68caa27e4e025f78bd9b
Logs
Versions
All relevant version information for the issue.
Voice Android SDK
audioswitch:1.1.8
OS Version
Android 12
Device Model
OnePlus 7 Pro