ch1ller0 / fridgefm-radio-core

Simple lightweight package for creating your own radio station via NodeJS heavily inspired by Shoutcast and Icecast.
https://fridgefm.com
MIT License
47 stars 9 forks source link

Suggestion: Have a way to reorder the playlist (NOT shuffle) #326

Closed LaganYT closed 1 year ago

LaganYT commented 2 years ago

kinda like this:

https://www.radioking.com/on/upload/TUTOS%20V1%20MANAGER%20EN/regen-en.gif

ch1ller0 commented 2 years ago

Hey, could you please clarify the reordering algorithm?

LaganYT commented 2 years ago

It is kind of like a way to drag and drop the audio files. Photo Editor _ Pixlr E - free image editing tool.webm Kind of like this video ^

I hope that helps explain it.

ch1ller0 commented 2 years ago

Thanks for the idea, however in your case the playing track changes immediately. I personally consider this logic harmful for the radio listeners. Also, there is already a method to rearrange https://github.com/ch1ller0/fridgefm-radio-core/blob/master/src/base/Playlist/methods.ts#L24 . Please consider using this one

LaganYT commented 2 years ago

Oh I didn't see that. I forgot to mention the top 2 songs are unable to be rearranged.

LaganYT commented 2 years ago

Can you make a working version for the reorder thing on the demo main html page?