mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #125] Do we need always to select the "go-librespot" device in Spotify client? #74
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lnkpaulo on GitHub (Oct 18, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/125
Hello,
I cloned the latest version and ran it with my
config.xmlwhich is setup as follows:After going through the authentication process, I see:
I then open my Spotify client on my mobile device, select the device named 'go-librespot,' and I can successfully play music.
I also have a server/client connected to
go-librespot:3678, which works.Here's where the strange behavior occurs:
When I drop the server
go-librespot:3678, the Spotify client on my mobile loses the connection, which is expected.Now I restart the server at
go-librespot:3678, I get the following logs:... so far, so good. However, when I try to play music again using my server/client, nothing happens. To make it work, I need to reopen the Spotify client on my mobile, reconnect to the 'go-librespot' device, and then everything works as expected.
In conclusion, do I always need to open the Spotify client on my mobile and reconnect to 'go-librespot' for my server/client to work? This wasn't necessary in previous versions when the username/password authentication was still supported.
For your reference my server/client setup:
go-librespot:3678 <--> FastAPIServer (with my state-machine) <--> React Client
Thank you for the support.
@devgianlu commented on GitHub (Oct 20, 2024):
I suppose you are referring to starting playback through the API. Which request are you making to the API?
@lnkpaulo commented on GitHub (Oct 20, 2024):
I'm doing this:
... I think the issue is related with the "resume" in my state machine when I drop the go-librespot.
Let me check in more detail and I will return to you.
@lnkpaulo commented on GitHub (Oct 20, 2024):
... Yes the issue is with the resume, if the "go-librespot" is running the resume works, but if I drop it and start it again the resume is not working. which makes sense if "go-librespot" is keeping a session.
Only for your reference I need to change the logic of my current endpoint :
and improve the state machine to identify if go-librespot went down and then up.
So if my reasoning is ok, I think we can close this issue.
Thank you for your time.
@devgianlu commented on GitHub (Oct 20, 2024):
Glad you figured out the problem!