SwiftAudio 0.7.0
Changes
NowPlayingInfo
- Removed
reloadNowPlayingInfo()
, replaced withloadNowPlayingMetaValues()
andupdateNowPlayingPlaybackValues()
. - Fixes a problem where forcing an update to
nowPlayingInfo
would not happen, ifautomaticallyUpdatesNowPlayingInfo
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 thenowPlayingInfo
.- Added a
clear()
function to clear thenowPlayingInfo
- 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
.