Releases: jorgenhenrichsen/SwiftAudio
SwiftAudio 0.11.2
Fixes a bug where the ready event never fires if playWhenReady: true.
SwiftAudio 0.11.1
Fixes a problem where the initial time feature would not work if playWhenReady is true.
SwiftAudio 0.11.0
Feature
Asset options
Asset options can be supplied with an audio item by conforming to AssestOptionsProviding.
SwiftAudio 0.10.0
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
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
Changes
- Loads audio items async
SwiftAudio 0.9.1
SwiftAudio 0.9.0
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
didRecreateAVPlayerevent to theAudioPlayer. This can be used to reset theAVAudioSession.Categorywhen a new instance of theAVPlayeris 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
- Converts the project to Swift 5
- Add a
custom(time: CMTime)case to theTimeEventFrequencyenum - Removes
AudioPlayerDelegatecompletely. Events should be used instead.
SwiftAudio 0.7.2
Adds a bufferedPosition property to the player, returning the current seconds that are buffered of an AudioItem.