Releases: jorgenhenrichsen/SwiftAudio
Releases · jorgenhenrichsen/SwiftAudio
SwiftAudio 0.4.0
This release brings new features, some method signature changes and fixes!
Changes
AudioPlayer
- This is now used instead of SimpleAudioPlayer - which is now removed.
playWhenReady
is no longer public.nowPlayingInfoController
-property is now public and accessible.init
can now be supplied with your own instance ofAVPlayer
and instance ofNowPlayingInfoController
isMuted
getter/setterloadItem(_ item:playWhenReady:)
changed toload(item:playWhenReady:)
- These functions no longer throws errors:
togglePlaying()
play()
pause()
seek(to:)
- Induvidual properties for the
NowPlayingInfoController
is set by callingnowPlayingInfoController.set(keyValue:)
orset(keyValues:)
. Theadd(property:)
function is removed from theAudioPlayer
.
AudioSessionController
init
is now public, and anAudioSession
can be supplied.
NowPlayingInfoController:
- init’s infoCenter parameter now has a default value of
MPNowPlayingInfoCenter.default()
RemoteCommandController:
-init
is now public
- can supply
MPRemoteCommandCenter
to the init, default isMPRemoteCommandCenter.shared()
Fixes:
QueueManager:
- currentIndex is now correctly incremented when add(items:at:) is called with an index < currentIndex
QueuedAudioPlayer:
load(item:playWhenReady:)
now replaces the current item of the player. Earlier this function did not work properly on the QueuedAudioPlayer.
AudioPlayer:
- Fix typo in
timeEventFrequency
-property
SwiftAudio 0.3.6
- Can set the rate of the AudioPlayer
- Can seek immediately after starting playback
- Can supply AudioItems with the wanted
AVAudioTimePitchAlgorithm
- Can remove all upcoming items in the queue
audioPlayerItemDidComplete
now gives the reason for the stop
SwiftAudio 0.3.5
This adds functionality for overriding remote command handlers in the RemoteCommandController
.
SwiftAudio 0.3.4
- Updated Quick and Nimble so the project runs on Xcode 10
- Small fix that corrects a problem where a noLoadedItem error would be thrown by pause() if the player was already paused, and play() if the player was already playing.
SwiftAudio 0.3.3
- Added a bunch of tests
- Added code coverage reporting through codecov
- Added subscription of interruption notifications to
AudioSessionController
SwiftAudio 0.3.2
Next and previous commands are now handled by the RemoteCommandHandler.
SwiftAudio 0.3.1
- Bug fixes
- Get notified when duration is loaded for an item
SwiftAudio 0.3.0
Added queue functionality and improved the example app
SwiftAudio 0.2.1
- AudioItems can supply their own commands
SwiftAudio 0.2.0
- Choose what remote actions to handle
- Fixes