-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(auto)play errors on startup or reconnect of spotifyd #1155
Comments
Thank you for the detailed report, and sorry for the long response time.
There's currently ongoing work on adding a For me personally, it works when I close all clients, start Apart from that, since we're completely relying on |
Yes you need to wait a bit (4 hours should be save) if another client was playing before and also restart spotifyd after that.
Yeah of course we can also try to forward relevant parts of issue at the librespot issue tracker. I am not sure which errors are caused by what tool. the "mercury error" e.g. is it caused in librespot or is it just a wrong usage of its autoplay feature in spotifyd? EDIT: Just saw that there is the 0.3.5 release. will try that when I have time to compile that with DBus on ARMv6. |
Took me quite some time to figure it out but I managed to compile spotifyd-0.3.5+5565f24 with DBUS for armv6l using qemu. good news: transfer-playback both from dbus as well as from the API work now from an autoplay context smoothly and without error. bad news: the play function still does not work from either MPRIS or the API (without any error in the log though) in the following states
Note: it works however if i just play some tracks and pause, then I can resume with play button hours later... assuming stable internet and that I did not use any other spotify device to play on my account. My questions now are:
|
Calling Transferring the playback to itself is (to my knowledge) not implemented in |
I am fine and happy at the moment, with a modified version of this https://github.com/FreekBes/spotify_web_controller and the dbus transfer-playback call. just wanted to report back. so maybe it makes sense to close this issue and create a new and more specific one for improving MPRIS implementation? Nevertheless I had a look but I think I can not be of help here, would just break things. many mpris implementation decisions are too cryptic to me (adding to the cryptic rust syntax)
but I don't understand why not directly also properties that emit changes are defined as |
In comparison to the official clients or things like
I think, there's a lot of room for improvement with new sessions like continuing playback or, as you proposed, automatically transferring playback to the device, when
Yes, the
As for the
To be honest, I'm not really sure what that method does, probably some introspection things? If so, it might make sense to change that to
Oh, good point. If you want, feel free to add that definition! |
Description
after spotifyd is started up freshly (or reconnecting to AP) it seems not possible to start the playback via spotify API
( I can not test MPRIS since armv6 binary has no dbus support but probably that is affected also in similar way)
EDIT yes it is: see #1157
To Reproduce
{ "device_ids": [ "1ecc089171983b406deeb321b10c98f0dd62d7da" ], "play":true }
Expected behavior
I think if spotifyd loses its "playback context" on (re)connect to spotify it would make sense to restore it somehow. I think a convenient strategy would be to continue with the last played song and its context (e.g. the playlist or autoplay station) when the play command is sent. Using this API call https://developer.spotify.com/console/get-recently-played/ this should be possible. For the transfer playback call I would expect that no error is shown and the same strategy could be used.
Logs
Click to show logs
reconnect
restart
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: