Skip to content

SwiftAudio 0.7.0

Compare
Choose a tag to compare
@jorgenhenrichsen jorgenhenrichsen released this 10 Mar 11:23
· 78 commits to master since this release
3930096

Changes

NowPlayingInfo

  • Removed reloadNowPlayingInfo(), replaced with loadNowPlayingMetaValues() and updateNowPlayingPlaybackValues().
  • Fixes a problem where forcing an update to nowPlayingInfo would not happen, if automaticallyUpdatesNowPlayingInfo was set to false.
  • The current time of the nowPlayingInfo is no longer updated every second. Setting the rate will automatically progress the time, so there is no need to update it so often.
  • NowPlayingInfoController.set(keyValues:) now actually applies the values to the nowPlayingInfo.
  • Added a clear() function to clear the nowPlayingInfo
  • The nowPlayingInfo is now immediately updated when a seek action is done. Should cause a less "jumpy" slider on the lock screen when scrubbing to seek.

Events

Introduces events to listen for changes in the AudioPlayer. This replaces the AudioPlayerDelegate, and this will be removed eventually. With events it is possible to subscribe to just the events you need, without implementing unneeded empty delegate methods. The AudioPlayer can also have multiple listeners for each event.

All events can be found in the event property of the AudioPlayer.