[quote=“lolodomo, post:17, topic:174463”]“CLEAR_QUEUE” type has now been suppressed.
RemoveAllTracksFromQueue callback can be easily used for the same result.[/quote]
Hi Lolodomo,
Thanks again for this plugin. I am looking for some help with a Sonos action that occurs nightly as part of a scene, always playing the same Sonos playlist.
When I use “PlayURI”, I find that the playlist is being queued. Unless I manually delete this on occasion, the queue would grow indefinitely, and I am concerned that this may cause issues down the road. What I would like to do is be able to clear the device’s queue each night just prior to running the PlayURI. I am not certain how to call the RemoveAllTracksFromQueue action, or if that is still active.
Is deletion of the queue or avoidance of appending the queue still a possibility in the plugin?
A recent Sonos firmware update now constraints to put the playlist items in the queue.
I have not thought about that but you’re right, that’s a problem because the queue will grow up each time you launch a Sonos playlist.
Your solution with a call to RemoveAllTracksFromQueue before calling PlayURI will work. But of course you will loose all your queue. An alternative with a unique call would be to simply replace call to PlayURI with a call to the action EnqueueURI with parameter EnqueueMode set to REPLACE_QUEUE_AND_PLAY and of course the same URI.
Lolodomo, given the simplicity of using REPLACE_QUEUE_AND_PLAY, I don’t think that would be a critical addition. However, unless I am mistaken, it seems that the default action of PlayURI and EnqueueURI are currently the same. If the modification is not difficult, this would make the plugin more versatile.
If the PlayURI command is used, could I then specify REPEAT_ALL as the enqueue mode?
If yes, then I would certainly vote to have PlayURI revert to a replace queue and play function.
If no, is there some way to call this command in the context of what I am doing (i.e., eliminate existing queue, set device to place a new queue, plus set the repeat all command)?
If the PlayURI command is used, could I then specify REPEAT_ALL as the enqueue mode?
If yes, then I would certainly vote to have PlayURI revert to a replace queue and play function.
If no, is there some way to call this command in the context of what I am doing (i.e., eliminate existing queue, set device to place a new queue, plus set the repeat all command)?[/quote]
I changed SetURIToPlay / PlayURI to a replace queue.
Regarding repeat mode, you have to use the action SetPlayMode after loading your playlist. I would recommend in this case to use SetURIToPlay then SetPlayMode then Play
Thanks for this lolodomo. Am I correct in understanding that this change was incorporated into the Beta2 files? When looking for the files here, I could not see an update.