htilly / zenmusic

Slack / Sonos / Spotify / Node.js - Control Sonos through #Slack
125 stars 36 forks source link

Play command will always play the first song from the queue #17

Closed laurensV closed 6 years ago

laurensV commented 7 years ago

Isn't it better to play the song where it last ended from the queue? Is there also the possibility to play a certain song from the queue (or a new song) directly?

htilly commented 7 years ago

Hi!

Play, stop and pause is admin command and shouldn't´t be used for regular used.

"add" will add a song to the queue if the unit is already playing a tune. If the unit is idle, add will flush the old queue and start from fresh.

Append only works if the unit is idle. It will then reuse the previous queue, start playing it and add the new song to the end of the queue.

If you want to play a new song directly, use the flush command, then add (flush is admin).

BR Tilly

laurensV commented 7 years ago

But there is no way to pause the music and start playing again.. There is no 'pause' command and when you do 'stop' and then 'play' it will start playing the queue from the start. I think it is better to:

htilly commented 7 years ago

well.. made a quick hack..

try the following commands: pause playpause

laurensV commented 7 years ago

Thanks! However, the playpause command is exactly the same as the play command and starts playing the queue from the top instead of resuming the song. Pause command is working.

laurensV commented 7 years ago

Sometimes the playpause function resumes the song, and then the next time it will play the list from the start. Can't figure this out yet..