Add function for seeking time in iOS control center and lockscreen #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds support for scrubbing with the progress bar on iOS' control center and lockscreen. This fixes #60 and #61.
Ionic Native PR: danielsogl/awesome-cordova-plugins#1727
music-controls-seek-to
MusicControls.updateElapsed(args: object);
THIS IS A BREAKING CHANGE (probably needs to update to 2.0.0 with this)
JSON.parse(action) === { message: "music-controls-next" }
This is due to the fact that we need to get the new position of the audio file after the user has scrubbed with the iOS scrubber. Seconds are returned by iOS:
JSON.parse(action) === { message: "music-controls-seek-to", position: "208" }
The position param returned by the
music-controls-seek-to
event is in seconds.