sync
sync copied to clipboard
"Default" playlist/media
It'd be nice to have a playlist that'd automatically populate the list whenever the queue was empty and, when anyone actually adds a new item, have it automatically remove all of itself from the queue. Sort of like a "filler" playlist for if nothing's happening or if people are sitting around in the chat and just want background noise and stuff.
This sounds like something that can already be accomplished with a bot.
Perhaps, but it probably wouldn't work very well, seeing as the bot would have to be constantly waiting to see if someone adds something to the queue and, if so, remove all it's content in batch (as far as I know, there's no websocket command to delete multiple items)
It wouldn't be difficult at all to add a batch deletion frame on the server end, whereas adding "TV channel" logic would be a cumbersome one-size-fits-most no-one-is-happy quagmire of pain that we've repeatedly declined now.
"constantly waiting to see if someone adds something" would look something like this by the way.
bot.socket.on('queue', (frame)=>{
if(frame.item.queueBy !== bot.name){
bot.wipeAutoqueuedPlaylistItems()
}
})
...fair.
There has been a discussion in the past of separating the playlist from the play queue, which is not quite the same thing as what you requested, but I think covers the same use case. i.e. channels having a dedicated playlist of rotating content which is interruptible by the play queue of user-added videos. The current implementation only implements the queue because that's the use case it was originally designed for: users adding videos to share with each other, not a 24 hour endless entertainment loop, but when people use it as a hangout spot it doesn't make as much sense.
I don't have any plans to implement that right now but I think it's worth considering.