Skip to content

Releases: jorgenhenrichsen/SwiftAudio

SwiftAudio 0.11.2

28 Nov 17:51
Compare
Choose a tag to compare

Fixes a bug where the ready event never fires if playWhenReady: true.

SwiftAudio 0.11.1

22 Aug 21:00
Compare
Choose a tag to compare

Fixes a problem where the initial time feature would not work if playWhenReady is true.

SwiftAudio 0.11.0

12 Jul 16:18
Compare
Choose a tag to compare

Feature

Asset options

Asset options can be supplied with an audio item by conforming to AssestOptionsProviding.

SwiftAudio 0.10.0

03 Jul 16:36
1c4cbf6
Compare
Choose a tag to compare

Changes

AudioPlayer state

The AudioPlayer now has an additional state: buffering, along with a different pattern for when it is in which state. The state will behave like this:
As before idle is when no item is loaded, and the player does nothing. When an item is loaded, the player will immediately enter the loading state. When the item is loaded and ready for playback, it enters the ready state. When playback has started it will enter either playing or buffering depending on if buffering is needed or not. As before, paused indicates the paused state.

Example application

Now includes a load indicator as an example of how this can be used to give the user information about what the app is currently doing. It also includes an example of how to handle an error when loading an audio item with no internet connection.

SwiftAudio 0.9.3

01 Jul 14:26
Compare
Choose a tag to compare

Changes

  • Like, dislike and bookmark remote command is now available
  • Safer deinit of observers and weak capturing of self when asynchronously loading an asset in the AVPlayerWrapper.

SwiftAudio 0.9.2

19 Jun 11:17
Compare
Choose a tag to compare

Changes

  • Loads audio items async

SwiftAudio 0.9.1

11 Jun 11:50
Compare
Choose a tag to compare

Changes

AVPlayerWrapperProtocol is now class-bound.

PR: #61

SwiftAudio 0.9.0

11 May 17:51
5e50ea4
Compare
Choose a tag to compare

Handles a failure in the AVPlayer by creating a new instance if a failure occurs.

Changes

  • Will create a new AVPlayer instance on failure
  • Adds an didRecreateAVPlayer event to the AudioPlayer. This can be used to reset the AVAudioSession.Category when a new instance of the AVPlayer is created.

Notes

If the player fails, a new (or the same) item will need to be loaded in order to trigger the creation of a new instance of the AVPlayer.

SwiftAudio 0.8.0

18 Apr 15:20
5c8c83f
Compare
Choose a tag to compare
  • Converts the project to Swift 5
  • Add a custom(time: CMTime) case to the TimeEventFrequency enum
  • Removes AudioPlayerDelegate completely. Events should be used instead.

SwiftAudio 0.7.2

16 Apr 07:17
Compare
Choose a tag to compare

Adds a bufferedPosition property to the player, returning the current seconds that are buffered of an AudioItem.