Open tyv opened 1 year ago
Thanks for proposing some code. For now I'm not sure if I would be ready to merge it because the use case seems very niche. All other event handlers are after changes to playback state or for error handling. It's difficult to imagine what the broad use case would be for intercepting a request to go to the next track, since you already have control over the playlist contents and order. Could you explain why you need to skip some tracks, but you still allow the user to access them?
hey, this is regarding and closes #512 (took me a while to make it run)
I propose property
onBeforeTrackChange
to provider, which gets same args asgoToTrack
and should return same or new data with the same structure.