mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #42] Daemonize device ? #11
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#11
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 @midnightexigent on GitHub (May 27, 2022).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/42
Currently whenever we leave the TUI, music stops playing. It would be better if music kept playing in the background.
Is such a feature in the roadmap ?
@midnightexigent commented on GitHub (May 27, 2022):
Actually after looking a bit further into this, I noticed that librespot itself is already a pretty feature-complete device/daemon. Is there any reason spotify-player needs to wrap librespot and be a device itself ? Can't it just be a tui client ?
@aome510 commented on GitHub (May 27, 2022):
So
spotify-playeris made to be a TUI alternative to official Spotify app. Similar to the Spotify app, if you start streaming music there, quit the app will stop playing the music.Not in a roadmap atm, but add a
--daemonoption should be trivial and it will become handy when media control support is implemented. Without that, there is no point of running the app as a daemon as the only thing you can do with it is play music, e.g cannot toggle play/pause, next, prev, etc.@jesyspa commented on GitHub (Mar 24, 2023):
As an alternative here: spotifyd already works as a spotify daemon, and by setting default_device I can automatically play from that. It would be nice if I could disable the spotify_player device entirely, since in such a setup I never want to play from it.
@aome510 commented on GitHub (Mar 24, 2023):
You can disable the integrated client entirely by building the app without
streamingfeature (included as default features). One way to do it is:@jesyspa commented on GitHub (Mar 24, 2023):
Thanks, that's good to know. It would be a bit of a hassle to compile manually (I'm using the AUR package right now).
If you're open to it, I could put together a patch that adds this as a configuration option? Or is there something that makes that difficult to implement?
@aome510 commented on GitHub (Mar 24, 2023):
PRs are welcome! I never think about this, so I don't know if it would hard to implement.
That said, I still think using
default_deviceshould work as a config option in case you want to use another Spotify client.@jesyspa commented on GitHub (Mar 24, 2023):
Cool, I'll take a look this weekend!
default_devicedoes work, but I often have two or more spotify_players open (my workflow involves multiple X sessions on one machine), and the list gets quite long which makes it a hassle if I e.g. want to switch the audio to my phone. So it's a minor thing, really.@aome510 commented on GitHub (Mar 24, 2023):
Look forward to your PR! Just a note that there is
SwitchDevicecommand that allows you to transfer the playback to another device in case u may miss it.@cheyngoodman commented on GitHub (Apr 23, 2023):
This feature could help
spotify-playerreplacespotifyd. It seems extremely useful when combined with CLI commands.With both features,
spotify-playerould completely replace myspotifyd+spotify-tuiworkflow.@aome510 commented on GitHub (Apr 23, 2023):
@cheyngoodman in case u may miss, you don't need a "spotifyd+spotify-tui" kind of workflow with
spotify-playeras the app itself has an integrated Spotify client for streaming, so you don't need another client likespotifyd.I think the daemon device is only good when you use with the CLI app to control the music without an UI. Is that what you means by your "spotifyd+spotify-tui" workflow?
@cheyngoodman commented on GitHub (Apr 23, 2023):
Right, I wish to use the UI for browsing or managing playlists occasionally, but I'm mostly playing music without the interface.
I'm hoping to completely replace
spotify-tuiwithspotify_playerfor controlling the music without a UI. Then, if possible with this daemon feature I can also replacespotifydwithspotify_player.I'm getting close to my preferred workflow with
spotifydfor playing without UI +playerctlfor controlling +spotify_playerfor browsing. It's almost perfect butplayerctlcannot like/unlike and struggles with volume.I'm hoping
spotify_playerreplace all the spotify related apps I use.v0.3.0#938