Jørgen Henrichsen
d1bbc94bdd
Update Readme. Update podspec.
...
Bump version to 0.9.1.
0.9.1
2019-06-11 13:48:16 +02:00
Jørgen Henrichsen
fb5a8dde6c
Merge pull request #61 from minhtc/fix-exclusive-access
...
Fix crash on modification requires exclusive access
2019-06-11 13:47:03 +02:00
minhtcx
9b71040f43
fix crash on modification requires exclusive access
2019-06-10 12:02:46 +07:00
Jørgen Henrichsen
5e50ea48d6
Merge pull request #60 from jorgenhenrichsen/recover-from-AVPlayer-failed
...
Recover from AVPlayer failed
0.9.0
2019-05-11 19:41:12 +02:00
Jørgen Henrichsen
92a804e9e4
Update Readme. Update podspec.
...
Bump version to v0.9.0.
2019-05-11 19:30:59 +02:00
Jørgen Henrichsen
af4635d047
Remove AVPlayer parameter from init in both AudioPlayer and AVPlayerWrapper.
2019-05-11 19:29:36 +02:00
Jørgen Henrichsen
addebef7f9
Add more detailed description on the fail event.
2019-05-11 18:14:54 +02:00
Jørgen Henrichsen
46022ef0d6
Add event when AVPlayer is recreated.
...
The AudioSession category will need to be set again when this event is emitted.
2019-05-11 17:56:43 +02:00
Jørgen Henrichsen
386dc5202c
Recreate the AVPlayer when loading an item, if the previous item failed.
2019-05-11 17:46:55 +02:00
Jørgen Henrichsen
17166093c2
Correctly set isObserving when stopping the observation.
2019-05-11 17:46:27 +02:00
Jørgen Henrichsen
c06b8ce64c
Made the player observer not retain the AVPlayer.
...
They will also stop observing the current AVPlayer if a new one is going to be set.
2019-05-11 17:34:24 +02:00
Jørgen Henrichsen
5c8c83f914
Merge pull request #54 from jorgenhenrichsen/swift5
...
Swift 5
0.8.0
2019-04-18 17:18:00 +02:00
Jørgen Henrichsen
ef2d9f5a90
Update README. Update podspec.
...
Bump version to 0.8.0.
2019-04-18 17:06:57 +02:00
Jørgen Henrichsen
08ebb473f2
Add a custom case to the TimeEventFrequency enum.
...
Will fix #52 .
2019-04-18 16:53:07 +02:00
Jørgen Henrichsen
d32a041159
Updated to recommended project settings.
2019-04-18 16:53:07 +02:00
Jørgen Henrichsen
1057a7fca6
Add new handler for non-frozen enums.
2019-04-18 16:53:07 +02:00
Jørgen Henrichsen
cee2be50e2
Removed the AudioPlayerDelegate.
...
Events must be used instead.
2019-04-18 16:53:07 +02:00
Jørgen Henrichsen
8161c3cf02
Update to Swift 5.
2019-04-18 16:53:07 +02:00
Jørgen Henrichsen
bb0f301383
Update dependencies.
2019-04-18 16:53:07 +02:00
Jørgen Henrichsen
9da1347d12
Update issue templates
...
Added issue templates based on Githubs default templates
2019-04-18 12:45:07 +02:00
Jørgen Henrichsen
f8026d0915
Update podspec. Update README.
...
Bump versions to 0.7.2.
0.7.2
2019-04-16 09:15:15 +02:00
Jørgen Henrichsen
9d6534f2c9
Merge pull request #49 from dcvz/master
...
Add `buferredPosition` property
2019-04-16 09:14:10 +02:00
David Chavez
c55c25686c
Add buferredPosition property
2019-04-14 23:55:44 +02:00
Jørgen Henrichsen
852578c914
Merge pull request #47 from jorgenhenrichsen/queue-access
...
Queue access
0.7.1
2019-04-07 21:47:09 +02:00
Jørgen Henrichsen
0ae0427556
Update README. Update podspec.
...
Bump versions to 0.7.1.
2019-04-07 21:40:38 +02:00
Jørgen Henrichsen
9170be5e36
More information available in the QueuedAudioPlayer.
...
Can get the currentIndex and all items in the queue.
2019-04-07 20:58:27 +02:00
Jørgen Henrichsen
3930096357
Merge pull request #44 from jorgenhenrichsen/v0.7.0
...
V0.7.0
0.7.0
2019-03-10 12:22:24 +01:00
Jørgen Henrichsen
9e8ebdfca1
Update README. Update podspec.
...
Bump versions to 0.7.0.
2019-03-10 10:53:14 +01:00
Jørgen Henrichsen
31f4745bae
Update README.
...
Updated description of events.
2019-03-10 10:47:46 +01:00
Jørgen Henrichsen
4a8af1bce3
Removed unneeded mark.
2019-03-10 10:39:32 +01:00
Jørgen Henrichsen
8e6b72613d
Set volume of player in tests to 0.
2019-03-10 10:36:30 +01:00
Jørgen Henrichsen
ae760c4cac
Put events in seperate struct.
...
Makes it easier to discover which events are available.
2019-03-10 09:37:00 +01:00
Jørgen Henrichsen
b3856e0a7a
Tests for AudioPlayer events.
2019-03-10 01:02:24 +01:00
Jørgen Henrichsen
757e5f476c
Use direct closure handlers for events.
2019-03-10 01:02:04 +01:00
Jørgen Henrichsen
1f5eae407d
Make event calls async.
...
- Events will be emitted on the utility class.
- Use a semaphore to avoid race conditions in the Event class.
- Update example to dispatch ui updates to the main queue.
2019-03-09 21:30:50 +01:00
Jørgen Henrichsen
29660371c9
Updated tests to use events.
2019-03-09 21:30:02 +01:00
Jørgen Henrichsen
c2530a0193
Update README.
...
Add details about the event handlers.
2019-03-09 20:31:27 +01:00
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
6ea2e082b0
Call func audioPlayer(itemPlaybackEndedWithReason:) directly, instead of calling the AVWrapperDelegate implementation method.
...
Also remove the corresponding delegate method in the AVWrapper, and add a `AVWrapperItemDidPlayToEndTime` method instead.
2019-03-03 20:04:27 +01:00
Jørgen Henrichsen
b6b4599ef5
Update nowPlayingInfo elapsed time immediately when seeking.
...
Causes less jumpy slider when seeking from the lockscreen.
Will rewind to the currentTime if the seeking fails.
2019-03-03 19:46:10 +01:00
Jørgen Henrichsen
3ccf9ed20e
Update README
...
Add a missing `shared` call for the AudioSessionController.
2019-03-03 16:26:36 +01:00
Jørgen Henrichsen
d6eb187788
Update README
...
Add more descriptions on setting the nowPlayingInfo
2019-03-03 16:25:46 +01:00
Jørgen Henrichsen
1febb782d8
Add tests for NowPlayingInfoController.
2019-03-03 16:10:30 +01:00
Jørgen Henrichsen
c4c6f42ac0
Added clear() method. Use NowPlayingInfoCenter protocol.
...
`NowPlayingInfoCenter` makes the info center mockable, so the controller can be easily tested.
2019-03-03 16:09:29 +01:00
Jørgen Henrichsen
d8b4466629
Add test for NowPlayingInfo artwork.
2019-03-01 12:21:00 +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
7e46a91e73
Don't reset info dict on set(keyValues:). Actually apply new values to infocenter.
...
The set(keyValues:) function did not actually apply the new values to the nowPlayingInfo, but does now.
2019-02-27 22:35:14 +01:00
Jørgen Henrichsen
8ca4a873a5
Remove reloadNowPlayingInfo() and replace it with two seperate functions for meta values and playbackvalues.
...
- loadNowPlayingMetaValues() loads the meta data from the AudioItem into the NowPlayingInfoController.
- updateNowPlayingPlaybackValues() updates the playback related values in the NowPlayingInfoController.
- Earlier, reloadNowPlayingInfo would have no effect if `automaticallyUpdateNowPlayingInfo` was set to false. This is no longer the case, and both playbackValues and meta data can be forced to update without the player loading it automatically.
- Playback values are no longer updated each second in the NowPlayingInfoController. It should be sufficient to keep the rate, currentTime and duration in sync when they change.
2019-02-27 17:03:17 +01:00
Jørgen Henrichsen
3f54de70bc
Merge pull request #42 from jorgenhenrichsen/bitrise
...
Bitrise
2019-02-24 14:21:28 +01:00
Jørgen Henrichsen
cae549a401
Merge branch 'bitrise' of github.com:jorgenhenrichsen/SwiftAudio into bitrise
2019-02-24 14:07:41 +01:00