mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #496] Can only play audio via Spotifyd (can't use librespot to create a device) #281
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#281
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 @platorotto on GitHub (Jul 8, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/496
Describe the bug
I've been trying to get to play audio via the terminal using the spotify-player AUR binary but I can't seem to find the
spotify-playerdevice in the devices tab. I already added my ownclient_idso I can control the music if it's playing in another device, hence, I've been using thespotifyddaemon to make it work.Not sure if I'm missing something or it should work out of the box. I've already re-read the config.md but it still doesn't work. Maybe the streaming tab could help but I already downloaded librespot directly from the AUR and it's the same.
Expected behaviour
Play audio via the
spotify-playerdevice in spotify connect.Screenshots

If spotifyd isn't on, this is what it shows.
Environment
@aome510 commented on GitHub (Jul 8, 2024):
Maybe related to https://github.com/aome510/spotify-player/issues/463
It should work out of the box. Can you share logs/backtraces if applicable?
Tbf, it's difficult for me to debug this kind of streaming issue because I cannot reproduce the error on my end. Normally, it happened because of some broken/missing system dependencies and is specific to each user's environment.
I would suggest you try other audio backends as described in https://github.com/aome510/spotify-player?tab=readme-ov-file#audio-backend to find one that works
@aome510 commented on GitHub (Jul 8, 2024):
Note that
spotifydandspotify_playeruse the same library to handle streaming, so it's very weird that one works but another doesn't. What audio backend doesspotifyduse?@platorotto commented on GitHub (Jul 8, 2024):
do you mind showing me how to check for the spotifyd backend?
first I downloaded the AUR binary the normal way, I suppose it came with the
rodio-backendbut when I checked the streaming tab i triedcargo install spotify_player --no-default-features --features pulseaudio-backendedit: adding the second paragraph
@platorotto commented on GitHub (Jul 8, 2024):
This is it. I don't think there's anything memorable since the first line is the config and it only shows the that there was no playback device available.

i'll try the one spotifyd says
@platorotto commented on GitHub (Jul 8, 2024):
i just checked. spotifyd uses pulseaudio so there must be something i did wrong. do you recommend uninstalling and reinstalling? if so, should I do it via cargo or aur?
@aome510 commented on GitHub (Jul 8, 2024):
Did it work with
aurbefore with therodiobackend? Otherwise, you can try to install with default features fromcargowithcargo install spotify_player.The linked log looks wrong to me. There should be a step to initialize the integrated player after getting token, for example:
Look like the app is run w/o any audio device 🤔 . Can you try re-install?
@aome510 commented on GitHub (Jul 8, 2024):
Also, can you make sure that the correct binary with correct set of features is run? From the above log, it seems that you run the binary installed by
cargo install spotify_player --no-default-features@platorotto commented on GitHub (Jul 8, 2024):
okay, i removed everything and redownloaded using
cargo install spotify_player --no-default-features --features pulseaudio-backendbut I'm stuck with a cargo problem. I'm getting this errorwarning: be sure to add /home/alejandro/.cargo/bin to your PATH to be able to run the installed binariesand I'm not quite sure how to fix it. I'm a noob with bash stuff and I'm using zsh as of rn@aome510 commented on GitHub (Jul 8, 2024):
Oh it's not an error but just a warning, so that you can run the downloaded binary with
spotify_player. You can update$PATHby addingexport PATH="$HOME/.cargo/bin:$PATH"to your.zshrc. You should also be able to run the binary directly with./home/alejandro/.cargo/bin/spotify_player@platorotto commented on GitHub (Jul 8, 2024):
Fixed it! I added that to
.zshrc, relogged and it worked. Thanks!!