Skip to content

Releases: twilio/audioswitch

1.0.0

17 Aug 19:58
0b359bc
Compare
Choose a tag to compare
  • Promotes 0.4.0 to the first stable release of this library.

0.4.0

14 Aug 22:00
ce282dd
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

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

12 Aug 22:19
266b6d3
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

Enhancements

  • Changed the name of the AudioDeviceSelector class to AudioSwitch.
  • 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

29 Jul 17:30
33c074f
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release

Bug Fixes

  • Fixed a bug where the audio focus wasn't being returned to the previous audio focus owner on pre Oreo devices.

0.2.0

28 Jul 22:46
8e6661c
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

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 and selectedAudioDevice 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 and selectedAudioDevice functions.

Bug Fixes

  • Improved the accuracy of the BluetoothHeadset within the availableAudioDevices returned from the AudioDeviceSelector when multiple Bluetooth Headsets are connected.

0.1.5

01 Jul 20:30
278d8a0
Compare
Choose a tag to compare
0.1.5 Pre-release
Pre-release

Bug Fixes

  • Disabled AAR minification to fix Android Studio issues such as getting stuck in code analysis and not being able to find declarations of AudioSwitch code.

0.1.4

15 Jun 22:34
152ce42
Compare
Choose a tag to compare
0.1.4 Pre-release
Pre-release

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

27 May 20:24
8f25a9c
Compare
Choose a tag to compare
0.1.3 Pre-release
Pre-release

Bug Fixes

  • Fixed crash by adding a default bluetooth device name.

0.1.2

22 May 20:42
850d437
Compare
Choose a tag to compare
0.1.2 Pre-release
Pre-release

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.

0.1.1

19 May 22:17
8e8527b
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release
  • Fixes bug that did not correctly abandon audio request after deactivate