mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1116] API for controlling playback, authentication... #517
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#517
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 (Feb 2, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1116
Is it possible to have an API for controlling playback, kicking users even?
How would I go about filtering who can and can't connect to librespot?
@kingosticks commented on GitHub (Feb 2, 2023):
Yes it is possible, but we only implement a Spotify Connect receiver i.e. for playback. We don't implement a (remote) controller side. Related projects like spotcontrol do implement this.
Alternatively, users can control playback via Spotify's Player Web API. Librespot can provide an access token, or you can obtain one yourself using Spotify's API endpoints. I guess transferring your playback session to the device will kick off anyone already using it?
Librespot does provide a Disconnect method but you'd need to write additional code to expose it. You'd also need to write additional code to implement access control/user filtering, nothing like that exists. I don't think we have any extensions like that. If it did exist, it'd probably belong in
ConnectConfig.@vidicunt commented on GitHub (Feb 4, 2023):
Thank you. I think a DBus interface or something similar would prove to be useful!
@roderickvd commented on GitHub (Feb 4, 2023):
spotifyd, a related project, exposes an MPRIS interface.