Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about media_control #599

Open
ampcat3 opened this issue Nov 2, 2024 · 1 comment
Open

Questions about media_control #599

ampcat3 opened this issue Nov 2, 2024 · 1 comment

Comments

@ampcat3
Copy link

ampcat3 commented Nov 2, 2024

[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.

@ampcat3 ampcat3 changed the title Is the media_control OpenUri implemented? Questions about media_control Nov 2, 2024
@aome510
Copy link
Owner

aome510 commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants