[GH-ISSUE #599] Questions about media_control #1282

Open
opened 2026-03-14 14:13:51 +03:00 by kerem · 1 comment
Owner

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.

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](https://github.com/user-attachments/files/17608356/spotify-player-24-11-02-13-32.log) Thanks for any info you can provide and for the great application.
Author
Owner

@aome510 commented on GitHub (Nov 25, 2024):

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.

Can you update the issue so that it is clear that this is a feature request to add support for the OpenURI media control command?

<!-- gh-comment-id:2498559389 --> @aome510 commented on GitHub (Nov 25, 2024): > 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. Can you update the issue so that it is clear that this is a feature request to add support for the `OpenURI` media control command?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#1282
No description provided.