IrosTheBeggar / mStream

The easiest music streaming server available
http://mstream.io
GNU General Public License v3.0
2.21k stars 186 forks source link

Make play queue persistent #423

Open ToxicFrog opened 8 months ago

ToxicFrog commented 8 months ago

The play queue appears to exist only in the browser's JS execution state, which means that if the browser gets restarted or even if the page gets reloaded, it evaporates. It would be nice to write it to PersistentStorage (or store it server-side and fetch it with a cookie, but that sounds like more work) so that it's a bit more durable.

IrosTheBeggar commented 8 months ago

I pushed a commit that adds this feature

IrosTheBeggar commented 7 months ago

The previous commit failed to get pushed. I made some updates and it's on the master branch now

5HT2 commented 2 months ago

Hey, I don't see this commit on master, my play queue also disappears when I refresh the page. This is my server version:

image
5HT2 commented 2 months ago

Wait, unless you're referring to the "Live playlist" feature, which has been implemented and works. I just realized it exists, it seems to solve this issue but is a clunky workaround and there should probably be a default "Live Queue" that is enabled unless you start playing a normal playlist?

5HT2 commented 2 months ago

See also: #436