librespot-org / librespot

Open Source Spotify client library
MIT License
4.76k stars 591 forks source link

Opening other spotify clients sometimes ask Continue Playing #522

Open rlopzc opened 4 years ago

rlopzc commented 4 years ago

Hello, when trying to control librespot from other clients, it sometimes ask "Continue Playing" and the current session (song) continues. It automatically connects when this "Continue Playing" pops in the client.

The problem is when it doesn't, and I try to select manually the session stops

This is the debug trace when this manual selection and session stops:

[2020-09-11T02:14:31Z DEBUG librespot_connect::discovery] Post "/" {}
[2020-09-11T02:14:31Z DEBUG librespot_connect::spirc] drop Spirc[1]
[2020-09-11T02:14:31Z DEBUG librespot_playback::player] Shutting down player thread ...
[2020-09-11T02:14:31Z DEBUG librespot_playback::player] drop PlayerInternal[1]
[2020-09-11T02:14:31Z DEBUG librespot_playback::player] PlayerInternal thread finished.
[2020-09-11T02:14:31Z DEBUG librespot_core::session] drop Session[1]
[2020-09-11T02:14:31Z DEBUG librespot_core::audio_key] drop AudioKeyManager
[2020-09-11T02:14:31Z DEBUG librespot_core::channel] drop ChannelManager
[2020-09-11T02:14:31Z DEBUG librespot_core::mercury] drop MercuryManager
[2020-09-11T02:14:31Z DEBUG librespot_core::session] drop Dispatch
[2020-09-11T02:14:31Z INFO  librespot_core::session] Connecting to AP "guc3-accesspoint-b-npd0.ap.spotify.com:4070"
[2020-09-11T02:14:32Z INFO  librespot_core::session] Authenticated as "XXXXXXXX" !
[2020-09-11T02:14:32Z DEBUG librespot_core::session] new Session[2]
[2020-09-11T02:14:32Z DEBUG librespot_connect::spirc] new Spirc[2]
[2020-09-11T02:14:32Z DEBUG librespot_connect::spirc] canonical_username: XXXXXXXX
[2020-09-11T02:14:32Z DEBUG librespot_core::mercury] new MercuryManager
[2020-09-11T02:14:32Z DEBUG librespot_connect::spirc] input volume:65535 to mixer: 65535
[2020-09-11T02:14:32Z DEBUG librespot_core::session] Session[2] strong=3 weak=2
[2020-09-11T02:14:32Z INFO  librespot_core::session] Country: "XX"
[2020-09-11T02:14:32Z DEBUG librespot_playback::player] new Player[2]
[2020-09-11T02:14:32Z INFO  librespot_playback::audio_backend::alsa] Using alsa sink
[2020-09-11T02:14:32Z DEBUG librespot_playback::player] command=AddEventSender
[2020-09-11T02:14:32Z DEBUG librespot_playback::player] command=VolumeSet(65535)
[2020-09-11T02:14:32Z DEBUG librespot_core::mercury] unknown subscription uri=hm://remote/user/XXXXXXXX/
[2020-09-11T02:14:32Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/XXXXXXXX/ count=0

Any idea what could it be?

roderickvd commented 3 years ago

Do you have a way of reproducing this reliably?

ghost commented 2 years ago

I just want to note that this happens to me too. I don't know how to reproduce it, however. The one thing I noticed is that exiting the other client and starting it up again, it detects librespot and offers to continue playing.

roderickvd commented 2 years ago

I really need a reproducible scenario to start doing something about this.