waveform-playlist
waveform-playlist copied to clipboard
Is there a way to re-order the tracks?
Say we want to prepend or append to the current trackList. Is there a way to insert a new track with an index so we can specify where it gets loaded?
Thanks!
Currently not built in, I should create this along with the ability to delete tracks as in another open issue.
Awesome! I've been mucking about in the code and I'll see if I can fork this and maybe make a PR for some of the more trivial things.
Appreciate your commitment to the lib!
I'm looking sometime to get around to this coming up soon.... Can't believe it's already been so many years lol. I'm not sure if you even use waveform-playlist anymore @alexander-daniel
Were you looking more for an event to add tracks? Or some way in the UI for drag and drop reordering and placement?
Wow! It has been years. We aren't currently using it anymore, but I've always kept his project in mind for our next Audio endeavour. IIRC I was looking for a way to be able to control the order? Or maybe control "where" a track could be loaded (so not by default as the last one)
The only code I can find is where we would keep references to the waveform-playlist
internal state, and we'd manually sort and re-assign playlist.tracks
.
Not sure if that helps!
Any news on this?