30 Commits
Author SHA1 Message Date
Jørgen Henrichsen 6804cf5163 Add events as an alternative to delegate. Updated example app.
This allows for selective listening to events, and no need to implement empty uneeded delegate methods.
Added a deprecation message to the delegate class, will most likely remove AudioPlayerDelegate in a future update.
2019-03-09 20:18:07 +01:00
Jørgen Henrichsen 1febb782d8 Add tests for NowPlayingInfoController. 2019-03-03 16:10:30 +01:00
Jørgen Henrichsen cb9dec49b2 Test updating of NowPlayingInfo.
* Create protocol NowPlayingInfoControllerProtocol to make it more testable (so it can be mocked).
2019-02-28 23:06:03 +01:00
Jørgen Henrichsen 05ca97b8eb Deleted AudioSessionCategory file. 2018-12-25 17:39:32 +01:00
Jørgen Henrichsen 8ba40ca45f Updated project settings. 2018-12-23 14:30:23 +01:00
Jørgen Henrichsen f6b5e30e85 Converted SwiftAudio and example to Swift 4.2 2018-12-23 12:38:39 +01:00
Jørgen Henrichsen ba438c8ede Set SwiftAudio scheme as shared. 2018-11-02 17:53:37 +01:00
Jørgen Henrichsen 73089bbe8b Use AudioSession protocol instead of AVAudioSession.
- Makes the AudioSessionController easier to test.
- Updated tests
- Fixes a problem where the AudioSessionController tests would not succeed on device.
2018-11-02 08:01:15 +01:00
Jørgen Henrichsen 4adc84aaf3 Moved files to correct folder. 2018-10-26 12:24:48 +02:00
Jørgen Henrichsen 99bd43769c Folder structure in the project 2018-10-26 11:00:15 +02:00
Jørgen Henrichsen ce5e5e886f Removed SimpleAudioPlayer, will use AudioPlayer from now on.
Removed the tests.
2018-10-26 10:57:31 +02:00
Jørgen Henrichsen 521141ba0d Moved the AVPlayerWrapperDelegate to a seperate file. 2018-10-26 10:54:08 +02:00
Jørgen Henrichsen d3d354d5bd Simplified AVPlayerWrapper.
Created a protocol for the wrapper to follow.
Removed config options that where just getters/setters to the underlying AVPlayer.
Made it possible to pass in custom AVPlayer that can be customized with these options.
Updated AVPlayerWrapperTests and added a couple tests for the rate property.
2018-10-26 10:50:55 +02:00
Jørgen Henrichsen 9f4ef3aa9e Updated pods 2018-10-10 06:08:05 +02:00
Jørgen Henrichsen 04ae9e7986 Made and AVplayerItemObserver
Observes the state of an AVPlayerItem. Just duration for now.
Observing the duration is usefull for updating the UI.
2018-07-29 01:09:08 +02:00
Jørgen Henrichsen f149ea09ff Moved APError to seperate file 2018-03-25 16:04:49 +02:00
Jørgen Henrichsen b4953f0a73 QueueManager
Two subclasses of AudioPlayer. Simple and Queued.
2018-03-24 16:53:11 +01:00
Jørgen Henrichsen ca8f35166d RemoteEventController that handles remote events 2018-03-21 00:13:17 +01:00
Jørgen Henrichsen 5b72d198b2 Updated example app.
Use AudioSessionController.
2018-03-19 12:00:40 +01:00
Jørgen Henrichsen bf02f1423d Restructured and renamed classes to make usage if the player better. 2018-03-19 10:50:49 +01:00
Jørgen Henrichsen 4ae2be3b82 Structure 2018-03-18 18:24:42 +01:00
Jørgen Henrichsen 7b8dd08fa1 Added Quick and Nimble 2018-03-16 16:58:56 +01:00
Jørgen Henrichsen 55e506eff0 Structure 2018-03-16 11:24:01 +01:00
Jørgen Henrichsen f7f8fa8748 Updated example project. 2018-03-15 23:49:17 +01:00
Jørgen Henrichsen 88de1e47eb Rename 2018-03-15 22:54:26 +01:00
Jørgen Henrichsen 92f34732e9 Updated example project. 2018-03-15 22:13:28 +01:00
Jørgen Henrichsen 0c74884689 Correct target for TimeFrequency 2018-03-14 08:31:40 +01:00
Jørgen Henrichsen dd14df43d6 Moved player item notification listening to seperate class. 2018-03-14 08:21:15 +01:00
Jørgen Henrichsen 7dcea1490e Made it possible to choose time evnet frequency. 2018-03-11 19:51:24 +01:00
Jørgen Henrichsen e2effcc6ba Example project. 2018-03-11 19:03:37 +01:00