SwiftAudio Versions Save

Audio player for iOS

0.11.2

4 years ago

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

0.11.1

4 years ago

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

0.11.0

4 years ago

Feature

Asset options

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

0.10.0

4 years ago

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.

0.9.3

4 years ago

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.

0.9.2

4 years ago

Changes

  • Loads audio items async

0.9.1

4 years ago

Changes

AVPlayerWrapperProtocol is now class-bound.

PR: #61

0.9.0

5 years ago

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.

0.8.0

5 years ago
  • Converts the project to Swift 5
  • Add a custom(time: CMTime) case to the TimeEventFrequency enum
  • Removes AudioPlayerDelegate completely. Events should be used instead.

0.7.2

5 years ago

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