Releases: twilio/audioswitch
Releases · twilio/audioswitch
1.0.0
0.4.0
Enhancements
- Added a constructor parameter to enable logging. This argument is disabled by default.
val audioSwitch = AudioSwitch(context, loggingEnabled = true)
audioSwitch.start { _, _ -> }
- Added another constructor parameter that allows developers to subscribe to system audio focus changes while the library is activated.
val audioSwitch = AudioSwitch(context, audioFocusChangeListener = OnAudioFocusChangeListener { focusChange ->
// Do something with audio focus change
))}
audioSwitch.start { _, _ -> }
// Audio focus changes are received after activating
audioSwitch.activate()
0.3.0
Enhancements
- Changed the name of the
AudioDeviceSelector
class toAudioSwitch
. - Added the MODIFY_AUDIO_SETTINGS to the library manifest so it can be automatically consumed by applications.
- Added
AudioSwitch.VERSION
constant so developers can access the version of AudioSwitch at runtime. - Added
AudioSwitch.loggingEnabled
property so developers can configure AudioSwitch logging behavior at runtime. By default, AudioSwitch logging is disabled. Reference the following snippet to enable AudioSwitch logging:
val audioSwitch = AudioSwitch(context)
audioSwitch.loggingEnabled = true
audioSwitch.start { _, _ -> }
0.2.1
0.2.0
Enhancements
- Added support for multiple connected bluetooth headsets.
- The library will now accurately display the up to date active bluetooth headset within the
AudiodDeviceSelector
availableAudioDevices
andselectedAudioDevice
functions.- Other connected headsets are not stored by the library at this moment.
- In the event of a failure to connecting audio to a bluetooth headset, the library will revert the selected audio device (this is usually the Earpiece on a phone).
- If a user would like to switch between multiple Bluetooth headsets, then they need to switch the active bluetooth headset from the system Bluetooth settings.
- The newly activated headset will be propagated to the
AudiodDeviceSelector
availableAudioDevices
andselectedAudioDevice
functions.
- The newly activated headset will be propagated to the
- The library will now accurately display the up to date active bluetooth headset within the
Bug Fixes
- Improved the accuracy of the
BluetoothHeadset
within theavailableAudioDevices
returned from theAudioDeviceSelector
when multiple Bluetooth Headsets are connected.
0.1.5
0.1.4
Enhancements
- AAR minification is now enabled for release artifacts.
Bug Fixes
- Fixed a bug where the audio output doesn't automatically route to a newly connected bluetooth headset.
- Fixed a bug where the selected audio device doesn't get routed back to the default audio device when an error occurs when attempting to connect to a headset.
0.1.3
0.1.2
Enhancements
- Added the library source to release artifacts. The sources will now be available when jumping to a library class definition in Android Studio.
Bug Fixes
- Added a fix for certain valid bluetooth device classes not being considered as headset devices as reported in issue #16.