Cannot resume the Spotify music after playing the custom mp3 file

109 views
Skip to first unread message

Tony Joy

unread,
Oct 15, 2018, 3:12:26 AM10/15/18
to SoCo - Sonos Controller
Hi,
   I am trying to play a custom mp3 file after playing a Spotify music using SoCo. The issue is I cannot resume the Spotify music after playing the custom mp3 file. When I searched the issue I came to know about the bug SoCo/SoCo#557. So is there anyone who can give an idea on how to solve this issue?

Hopefully,
Tony


DPH

unread,
Oct 16, 2018, 4:01:21 AM10/16/18
to SoCo - Sonos Controller
Hi Tony,
there are issues with Music service authentication which hopefully we can solve given time.

For your use case you are already authenticated and playing Spotify. Assuming you started it from the Sonos controller then you can resume it. 
There is a SoCo module called snapshot which saves the current state, and then after you have done something (eg play your custom mp3 file, you can restore the previous state. 

However, if you started the music using Alexa then Sonos uses a cloud queue, and up to now this can't be re-started.
I think the same applies if you start the music from the Spotify controller. 
There may also be a time out on authentication if you are thinking of a long pause before you resume. 

I use the basic approach with my doorbell so it pauses what is playing, plays a doorbell mp3, then resumes. 
This works using snapshot - with the exceptions mentioned above. 

Hopefully this helps
Cheers David
Message has been deleted

Tony Joy

unread,
Oct 23, 2018, 6:05:25 AM10/23/18
to SoCo - Sonos Controller
Hi David,
            Thank you for your answer and sorry for the late reply. Actually I wanted to play music from the Spotify controller. So from your post I think we need to wait until the issue is resolved. Is there any other workaround for this issue?

Tony

Bart Boydens B&B De Notelaar

unread,
Feb 3, 2020, 3:13:54 PM2/3/20
to SoCo - Sonos Controller
Hi DPH,

this is great. Would it be possible to store the snapshot object offline and retrieve it later ? I want to automate re-playing a spotify playlist from another Spotify user that once played here on my Sonos. 
Is snapshot an option ? 
Any idea why we cannot load/play a specific Spotify playlist with soco ?

Op dinsdag 16 oktober 2018 10:01:21 UTC+2 schreef DPH:
Reply all
Reply to author
Forward
0 new messages