Closed harshilhp closed 1 year ago
2 reasons:
com.twilio.audioswitch.AbstractAudioSwitch
override fun onDeviceConnected(audioDevice: AudioDevice) { this.logger.d(TAG_AUDIO_SWITCH, "onDeviceConnected($audioDevice)") if (audioDevice is Earpiece && this.availableAudioDevices.contains(WiredHeadset())) { return } val wasAdded = this.availableUniqueAudioDevices.add(audioDevice) if (audioDevice is WiredHeadset) { this.availableUniqueAudioDevices.removeAll { it is Earpiece } } this.selectAudioDevice(wasListChanged = wasAdded) }
com.twilio.audioswitch.AudioSwitch override fun onDeviceDisconnected(audioDevice: AudioDevice) { this.logger.d(TAG_AUDIO_SWITCH, "onDeviceDisconnected($audioDevice)") var wasChanged = this.availableUniqueAudioDevices.remove(audioDevice) if (this.userSelectedAudioDevice == audioDevice) { this.userSelectedAudioDevice = null }
if (audioDevice is WiredHeadset && this.audioDeviceManager.hasEarpiece()) {
wasChanged = wasChanged || this.availableUniqueAudioDevices.add(Earpiece())
}
this.selectAudioDevice(wasChanged)
}
Have a fix coming soon.
Describe the bug While in call when user connect wired headset Earpiece is removed from list. Earpiece is not visible in list even if wired headset is removed at that time only speakerphone option is visible.
To Reproduce Steps to reproduce the behavior:
Expected behavior Earpiece option should be added again after removing wired headset from device
Screenshots
Device Info: I think it is not device specific issue i checked in few devices and they all have same issue