-
Notifications
You must be signed in to change notification settings - Fork 182
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
Spotify Player only works when Spotify client is open and not on its own with streaming? #435
Comments
side note, I installed spotify_player with |
I have the same problem. Also to add to this issue, if i do add a device first with the Spotify client, which it does then shows up in spotify_player, the device disappears after awhile if music is paused. Is there a way to have spotify_player remember a device? My use case is building a stand alone player that is controllable via home automation. if spotify_player keeps forgetting the playable device I think I hit a dead end with this solution. |
There is a CLI command to manually connect via name/id. Might wanna check that out. |
@wallysaurus. I don't really understand the issue you're facing. Can you elaborate and share any log/backtrace? Note that with streaming feature and a working audio backend, you don't need any other Spotify clients to run the app. |
As shown in my installation command above, I installed both |
28T22:06:04.629236Z INFO spotify_player::streaming: Application's connect configurations: ConnectConfig { name: "spotify-player", device_type: Speaker, initial_volume: Some(45875), has_volume_ctrl: true, autoplay: false }
2024-04-28T22:06:04.648762Z INFO spotify_player::streaming: Initializing a new integrated player with device_id=9b8a19c1-fc76-4018-9200-0097118a32c4
2024-04-28T22:06:04.648977Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2024-04-28T22:06:05.674157Z INFO spotify_player: No playback found on startup, trying to connect to an available device...
2024-04-28T22:06:05.674469Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2024-04-28T22:06:05.675099Z INFO spotify_player::media_control: Initializing application's media control event watcher...
2024-04-28T22:06:05.793165Z INFO client_request{request=GetCurrentUser}: spotify_player::client: Successfully handled the client request, took: 88ms
2024-04-28T22:06:05.927866Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: Successfully handled the client request, took: 222ms
2024-04-28T22:06:06.299895Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: Successfully handled the client request, took: 594ms
2024-04-28T22:06:06.776508Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: Successfully handled the client request, took: 1071ms
2024-04-28T22:06:06.783458Z INFO client_request{request=ConnectDevice}: spotify_player::client: Available devices: [Device { id: Some("9b8a19c1-fc76-4018-9200-0097118a32c4"), is_active: false, is_private_session: false, is_restricted: false, name: "spotify-player", _type: Speaker, volume_percent: Some(70) }]
2024-04-28T22:06:06.783543Z INFO client_request{request=ConnectDevice}: spotify_player::client: Trying to connect to device (id=9b8a19c1-fc76-4018-9200-0097118a32c4)
2024-04-28T22:06:06.963308Z INFO client_request{request=ConnectDevice}: spotify_player::client: Connection succeeded (device_id=9b8a19c1-fc76-4018-9200-0097118a32c4)!
2024-04-28T22:06:06.963372Z INFO client_request{request=ConnectDevice}: spotify_player::client: Successfully handled the client request, took: 1258ms
2024-04-28T22:06:08.678072Z INFO spotify_player::client::handlers: Current context ID (None) is different from the expected ID (Some(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")))), update the context state
2024-04-28T22:06:08.678237Z INFO client_request{request=GetContext(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")))}: spotify_player::client: Get album context: spotify:album:14FGilar8X2PCvelbjX4tZ
2024-04-28T22:06:08.856927Z INFO client_request{request=GetContext(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")))}: spotify_player::client: Successfully handled the client request, took: 178ms
2024-04-28T22:06:09.659760Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:6EGKCz3dehJc1NAhrvlWYm"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:09.811670Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:6EGKCz3dehJc1NAhrvlWYm"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:09.993606Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:6EGKCz3dehJc1NAhrvlWYm"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:10.133107Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:10.245568Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:6EGKCz3dehJc1NAhrvlWYm"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:10.349294Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:10.418631Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:6EGKCz3dehJc1NAhrvlWYm"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:10.526570Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:10.584504Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:6EGKCz3dehJc1NAhrvlWYm"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:12.633400Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 74ms
2024-04-28T22:06:13.532629Z INFO client_request{request=Player(TransferPlayback("9b8a19c1-fc76-4018-9200-0097118a32c4", false))}: spotify_player::client: Transferred playback to device with id=9b8a19c1-fc76-4018-9200-0097118a32c4
2024-04-28T22:06:13.532653Z INFO client_request{request=Player(TransferPlayback("9b8a19c1-fc76-4018-9200-0097118a32c4", false))}: spotify_player::client: Successfully handled the client request, took: 167ms
2024-04-28T22:06:14.365435Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:4laOJWnkJHMEvkR8LFohgQ"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:14.492392Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:14.609415Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:4laOJWnkJHMEvkR8LFohgQ"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:14.716811Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:14.805035Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:4laOJWnkJHMEvkR8LFohgQ"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:14.903422Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:14.985284Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:4laOJWnkJHMEvkR8LFohgQ"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:15.075234Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:15.499382Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:2nBwC0sBIO4xiZEsOCRb7N"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:15.641378Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:15.711309Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:2nBwC0sBIO4xiZEsOCRb7N"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:15.848559Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:16.133420Z ERROR client_request{request=Player(StartPlayback(Context(Album(AlbumId("14FGilar8X2PCvelbjX4tZ")), Some(Uri("spotify:track:2nBwC0sBIO4xiZEsOCRb7N"))), None))}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:16.248224Z ERROR client_request{request=Player(ResumePause)}: spotify_player::client::handlers: Failed to handle client request: no playback found
2024-04-28T22:06:17.681664Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: Successfully handled the client request, took: 11976ms
2024-04-28T22:07:46.308599Z INFO client_request{request=GetDevices}: spotify_player::client: Successfully handled the client request, took: 75ms``` |
Also worth noting I have |
Interesting, based on the log, this issue seems to happen because handling a |
@wallysaurus should be fixed with #439, e.g |
Doesn't seem like anything's changed on my end. |
Can you share the new log? The install command looks good to me |
|
Can you try running |
I'm just trying to use the terminal on its own without needing to have the spotify client open in the background. I'm not sure how I did this before, I had to reset my arch linux today.
I've followed the documentation very precisely. All I get is this: "No playback found."
The text was updated successfully, but these errors were encountered: