mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #599] Questions about media_control #347
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#347
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 @ampcat3 on GitHub (Nov 2, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/599
[Edit] Answered my own questions by looking at the code. The commands I asked questions about have not been implemented. The ones that have been implemented work as expected.
I use playerctl with the Spotify app to open an album or playlist and play it. The command would be:
playerctl -p spotify open "spotify:album:7KdKV91G9DiHkJ7RzCjwJt"
The "open" command handles both the opening and the playing of the specified URI. If I use:
playerctl -p spotify_player open "spotify:album:7KdKV91G9DiHkJ7RzCjwJt"
the log file shows the following but nothing appears to happen:
INFO spotify_player::media_control: Got a media control event: OpenUri("spotify:album:7KdKV91G9DiHkJ7RzCjwJt")
Just noticed that 'playerctl -p spotify_player stop' doesn't seem to do anything either so I must have something configured wrong or misunderstood something in the docs. Doing 'playerctl -l' shows spotify_player as something it can control. enable_media_control is set to true in the app.toml file. The documentation states that media_control is enabled by default (I am using the precompiled version 0.20.1 that is in spotify_player-x86_64-unknown-linux-gnu.tar.gz). Here are the entries in the log file for when I issued the 'stop' command:
2024-11-02T20:33:37.604924Z INFO spotify_player::media_control: Got a media control event: Stop
2024-11-02T20:34:47.613126Z INFO spotify_player::media_control: Got a media control event: Stop
There is nothing in the log file that shows any action being taken after receiving the event.
spotify-player-24-11-02-13-32.log
Thanks for any info you can provide and for the great application.
@aome510 commented on GitHub (Nov 25, 2024):
Can you update the issue so that it is clear that this is a feature request to add support for the
OpenURImedia control command?ShowActionsOn*commands #729ShowActionsOn*commands #1662