Commit Graph
67 Commits
Author SHA1 Message Date
Jørgen Henrichsen 460af7ab1e Added tests for the currentItem in the AudioPlayer 2018-10-28 12:44:52 +01:00
Jørgen Henrichsen 20190152eb Remove the add(propert:) for adding new NowPlayingInfo properties.
Made the nowPlayingInfoController public.
2018-10-28 12:30:47 +01:00
Jørgen Henrichsen 18688ab766 QueuedAudioPlayer load(item:) will replace the current item in the queue. 2018-10-26 14:07:47 +02:00
Jørgen Henrichsen 4adc84aaf3 Moved files to correct folder. 2018-10-26 12:24:48 +02:00
Jørgen Henrichsen b44777fcd7 Changed method signature for loading items. 2018-10-26 11:28:55 +02:00
Jørgen Henrichsen 10e6c46c18 Updated AudioPlayer tests 2018-10-26 11:18:26 +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 7c4dc27868 Made it possible to override remote command handlers 2018-10-21 10:42:29 +02:00
Jørgen Henrichsen 77a3206633 Update podspec
Bmump version to 0.3.4
2018-10-10 12:05:55 +02:00
Jørgen Henrichsen e8354dfdfb Test play()/pause() with no item loaded 2018-10-10 08:55:53 +02:00
Jørgen Henrichsen 9f4ef3aa9e Updated pods 2018-10-10 06:08:05 +02:00
Jørgen Henrichsen 534b62da9e Added tests for interruption notifications 2018-09-27 14:50:33 +02:00
Jørgen Henrichsen 0f2bfb3e79 Use long source when testing SimpleAudioPlayer 2018-09-25 19:52:38 +02:00
Jørgen Henrichsen eabeca93a0 Use shorter buffer duration for audio tests. 2018-09-21 17:35:20 +02:00
Jørgen Henrichsen 6a93840463 More tests
Added for SimpleAudioPlayer and QueuedAudioPlayer.
Made next and previous items in the queue non-optional, instead they will be empty when no items are in the queue.
2018-09-06 23:39:03 +02:00
Jørgen Henrichsen 1261f88803 Removed play to end tests. 2018-08-18 09:29:44 +02:00
Jørgen Henrichsen 6239d6d5e6 Shorter test sound 2018-08-18 09:23:19 +02:00
Jørgen Henrichsen a63771a040 More tests for AVPlayerWrapper and AudioPlayer 2018-08-18 09:03:06 +02:00
Jørgen Henrichsen 7d27ef286f Add the TestSound to the project 2018-08-05 15:28:27 +02:00
Jørgen Henrichsen bf0d3a79dd Use a smaller, silent test sound. 2018-08-05 14:59:31 +02:00
Jørgen Henrichsen 22dec9d6b1 Use low buffer duration when testing audio 2018-08-05 13:48:39 +02:00
Jørgen Henrichsen dafcbdfe3e Set automaticallyWaitsToMinimizeStalling to false in test case 2018-08-05 13:04:46 +02:00
Jørgen Henrichsen 9008c6f9a0 Renamed the delegate holder 2018-08-05 12:23:44 +02:00
Jørgen Henrichsen d49c522032 Added test case in AudioPlayerSessionControllerTests
Added case for deactivating the audio session.
2018-08-05 12:23:10 +02:00
Jørgen Henrichsen 7681d5d983 Added AudioPlayerTests 2018-08-05 12:22:39 +02:00
Jørgen Henrichsen 8b1e57b3c0 Added a Source file for test audio.
Contains the test audio file path, used in all tests.
2018-08-05 10:32:30 +02:00
Jørgen Henrichsen 1c4f5ec738 AudioSessionController tests.
Also activate audio session on play instead of launch in the example.
2018-08-05 10:02:53 +02:00
Jørgen Henrichsen d2ed064295 Test seeking function of AVPlayerWrapper 2018-08-05 09:07:34 +02:00
Jørgen Henrichsen da5b7702f7 Use next/prev commands in the example. 2018-08-04 08:55:44 +02:00
Jørgen Henrichsen 39d8c55743 Removed delegate test.
The duration of the item did not load without a player.
2018-07-29 09:53:53 +02:00
Jørgen Henrichsen d56d4c699e Added some more testing to the QueueManager and AVPlayerWrapper 2018-07-29 01:10:30 +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 ea9f632eb6 Added a testcase for AVPlayerObserver 2018-07-28 16:13:25 +02:00
Jørgen Henrichsen 460908e180 Updated example app
Added title, artist, image, timelabels and a queue.
2018-03-25 17:58:56 +02:00
Jørgen Henrichsen 8587b161b2 Added getters for next and previous items. 2018-03-25 17:58:45 +02:00
Jørgen Henrichsen f149ea09ff Moved APError to seperate file 2018-03-25 16:04:49 +02:00
Jørgen Henrichsen efc04395f9 More functions for the queuemanager and QueuedAudioPlayer 2018-03-25 16:03:24 +02:00
Jørgen Henrichsen 65bba1eb75 Next, and previous methods. 2018-03-24 17:44:57 +01:00
Jørgen Henrichsen b4953f0a73 QueueManager
Two subclasses of AudioPlayer. Simple and Queued.
2018-03-24 16:53:11 +01:00
Jørgen Henrichsen 661a7755df AudioItems can select their own remote commands.
ALso fixed a problem where remote commands would not be disabled properly.
2018-03-22 11:40:27 +01:00
Jørgen Henrichsen ca8f35166d RemoteEventController that handles remote events 2018-03-21 00:13:17 +01:00
Jørgen Henrichsen dd518108de Fixed singletong of AudioSessionController 2018-03-19 12:44:16 +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 8da4b606c5 Update travis config
pod install
2018-03-19 00:02:27 +01:00
Jørgen Henrichsen 4ae2be3b82 Structure 2018-03-18 18:24:42 +01:00
Jørgen Henrichsen 80254146f7 Audioplayer state tests. 2018-03-18 18:12:48 +01:00