waveform-playlist icon indicating copy to clipboard operation
waveform-playlist copied to clipboard

Is there a way to re-order the tracks?

Open alexander-daniel opened this issue 8 years ago • 5 comments

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!

alexander-daniel avatar Dec 16 '16 18:12 alexander-daniel

Currently not built in, I should create this along with the ability to delete tracks as in another open issue.

naomiaro avatar Dec 16 '16 20:12 naomiaro

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!

alexander-daniel avatar Dec 16 '16 21:12 alexander-daniel

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?

naomiaro avatar Apr 25 '21 03:04 naomiaro

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!

alexander-daniel avatar Jul 12 '21 00:07 alexander-daniel

Any news on this?

KnifeFed avatar May 16 '22 13:05 KnifeFed