mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1048] Control audio playback through an API #495
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#495
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 @vidicunt on GitHub (Aug 19, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1048
Is it possible to control audio aspects through code without input from a Spotify client? (e.g. skip track, pause, etc)
@michaelherger commented on GitHub (Aug 19, 2022):
Use the web API: https://developer.spotify.com/console/player/
@vidicunt commented on GitHub (Aug 19, 2022):
Does not really satisfy my use case since many clients would connect to that same speaker and I'd try to avoid getting OAuth API keys from each of them. Isn't there a way to do it locally, via librespot?
@fi5ch commented on GitHub (Aug 19, 2022):
I'm also looking for a way to do this. I want to run Librespot on a Raspberry Pi connected to a small display that shows the current player status and in addition I want to control the player with connected buttons.
If there is no such API on Librespot, maybe this would be an alternative: https://pypi.org/project/spotify-local-control/
@vidicunt commented on GitHub (Aug 19, 2022):
Thank you for the reply! This library only works if the Spotify app client is active on the PC right? Still wouldn't satisfy me if I had random phone users logging via zeroconf to the server...
@fi5ch commented on GitHub (Aug 19, 2022):
I haven't tried it yet, that's just what I found when I was looking for something like this I don't even know if this python project is still active. But I think there will be something along the lines that will cover this use case. Anyhow, an API at Librespot would definitely be useful and nice. Unfortunately I don't have any experience with Rust to implement it myself.
@eladyn commented on GitHub (Aug 19, 2022):
There is
spotifyd, which builds uponlibrespot. It offers, among other things, a DBus MPRIS interface, which can be used to query and modify the current playback state.Do note however that:
librespotthat is used is still0.2.0.