audioswitch icon indicating copy to clipboard operation
audioswitch copied to clipboard

An Android audio management library for real-time communication apps.

Results 24 audioswitch issues
Sort by recently updated
recently updated
newest added

**Describe the bug** audioDevices do not update after granting bluetooth permission (Android 12) **To Reproduce** Steps to reproduce the behavior: 1. turn on bluetooth on your android 12 device and...

bug

**Describe the bug** In adding support for API level 31, commit [07dfe6fd3052ec90346b5700ad08bcc5f5c92e7d](https://github.com/twilio/audioswitch/commit/07dfe6fd3052ec90346b5700ad08bcc5f5c92e7d#diff-a2712c763fb4ee092a7266f440ece9cbe3e09165f322591d7214197aacdba61c) introduced logic in BluetoothHeadsetManager.kt to determine a strategy for checking against the new bluetooth permissions. However, I believe...

bug

java.lang.IllegalArgumentException: at android.app.LoadedApk.forgetReceiverDispatcher (LoadedApk.java:1656) at android.app.ContextImpl.unregisterReceiver (ContextImpl.java:1858) at android.content.ContextWrapper.unregisterReceiver (ContextWrapper.java:786) at com.twilio.audioswitch.bluetooth.BluetoothHeadsetManager.stop (BluetoothHeadsetManager.kt:180) at com.twilio.audioswitch.AudioSwitch.closeListeners (AudioSwitch.kt:361) at com.twilio.audioswitch.AudioSwitch.stop (AudioSwitch.kt:180) at com.bt.resimpli.services.CallingService.stopService (CallingService.kt:278) at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.setViews (CallingActivity.kt:183) at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.addObservers$lambda-6 (CallingActivity.kt:122) at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.lambda$zYuPUpdBjSIPwqOq19upwqicdSo...

bug

The current README points to https://twilio.github.io/audioswitch/latest for the KDocs, but that gives a 404 error.

bug

**Is your feature request related to a problem? Please describe.** The default audio routing behaviour of Android 11 and Android 12 makes me mad. In reality the audio routing is...

enhancement

**Application Logs** Caused by java.util.ConcurrentModificationException at java.util.ArrayList$Itr.next(ArrayList.java:860) at java.util.AbstractCollection.toString(AbstractCollection.java:461) at java.lang.String.valueOf(String.java:2924) at java.lang.StringBuilder.append(StringBuilder.java:132) at com.twilio.audioswitch.AudioSwitch.addAvailableAudioDevices(AudioSwitch.kt:339) at com.twilio.audioswitch.AudioSwitch.enumerateDevices(AudioSwitch.kt:265) at com.twilio.audioswitch.AudioSwitch.enumerateDevices$default(AudioSwitch.kt:264) at com.twilio.audioswitch.AudioSwitch$wiredDeviceConnectionListener$1.onDeviceDisconnected(AudioSwitch.kt:71) at com.twilio.audioswitch.wired.WiredHeadsetReceiver.onReceive(WiredHeadsetReceiver.kt:33) at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1648) at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(:2) at android.os.Handler.handleCallback(Handler.java:883) at...

bug

**Describe the bug** When loading the app, it gives an error AudioSwitch.java line 138 **Application Logs** Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.HEADSET_PLUG flg=0x40000010 (has extras) } in...

bug

Thanks for making this convenient library! Currently the `start()` must invoke with a listener parameter, and the listener parameter will override `audioDeviceChangeListener` which means it cannot use multiple listeners. Is...

enhancement

**Describe the bug** Unable to switch to other Bluetooth while connected to Bluetooth **To Reproduce** 1. Bluetooth "A" Device connected then log audioDevices:["BluetoothHeadSet(name=A)", "Earpiece(name=Earpiece)","Speakerphone(name=Speakerphone)",] selectedDevice:BluetoothHeadSet(name=A) 2. Connect Bluetooth "B" Device,...

enhancement

``` java.util.ConcurrentModificationException: null at java.util.ArrayList$Itr.next(ArrayList.java:860) at java.util.AbstractCollection.toString(AbstractCollection.java:461) at java.lang.String.valueOf(String.java:2924) at java.lang.StringBuilder.append(StringBuilder.java:132) at com.twilio.audioswitch.AudioSwitch.addAvailableAudioDevices(AudioSwitch.kt:339) at com.twilio.audioswitch.AudioSwitch.enumerateDevices(AudioSwitch.kt:265) at com.twilio.audioswitch.AudioSwitch.enumerateDevices$default(AudioSwitch.kt:264) at com.twilio.audioswitch.AudioSwitch.start(AudioSwitch.kt:161) at com.happytheapp.react.RNTwilioVoiceSDK.TwilioVoiceSDKModule.connect(TwilioVoiceSDKModule.java:259) at java.lang.reflect.Method.invoke(Method.java) at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151) at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java) at...

bug