Fliwatt wrote: > Hey, > > I have been working on an application for a while which multiple people > at a party can feed with music, that sends it to LMS (over LMS-CLI) and > plays it one after the other. > The main problem that I have encountered though is, that once there is > not enough music in the queue, playback stops. > > So, "Don't Stop The Music" in combination with the Spotty plugin has > been a gamechanger for me. > > Only then, when a person wants to listen to another song after "Don't > Stop the Music" has taken over the queue, their song is put last in the > queue. Now I want to prioritize the user choice over that. Therefore I > have two possible solutions to this problem but I am not sure how to > implement either: > > 1. Have Don't Stop The Music only enqueue one song at a time. This way, > once the queue is empty, it would just add the next song and once a user > comes around they would just have to add their song and it would play > after. > Problem: This might lead to duplication of songs if many songs in > the same genre are being played.
This looks like the best option by far. But rather than depend on DSTM kicking in, just go ahead and start a random mix playing, configured so that Now Playing only shows one upcoming song. You should be able to add any number of items to the playlist without interfering with the random mix, as long as you don't clear the playlist. Random mix will always be ready to take over, but only one song at a time. Random mix shouldn't duplicate any song it added, so duplicates will only occur if the users want to hear the same songs over and over again. > 2. Have a way for LMS-CLI to detect who or rather what added a song to a > playlist so that I can remove the songs in between the song chosen by > the user. The "playlist delete <songindex>" command should make it possible to do this, if a bit tedious. > 3. Keep track of all the user added songs, once everything has been > played, wait for new song. If a new song is added, clear the playlist > and play the song chosen by the user. (I could implement this with my > current knowledge but I don't think that is is the cleanest of all > solutions) The "playlist insert" command should make this possible, but it sounds cumbersome to implement. I still think the first option is still the best. Interesting project. Good luck with it! LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players, occasionally with SB Radio, Boom or Classic. ------------------------------------------------------------------------ RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008 View this thread: http://forums.slimdevices.com/showthread.php?t=115746 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins