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

Global Media Keys #13813

Closed
Lc4B opened this issue Apr 3, 2024 · 4 comments · Fixed by #14338
Closed

Global Media Keys #13813

Lc4B opened this issue Apr 3, 2024 · 4 comments · Fixed by #14338

Comments

@Lc4B
Copy link

Lc4B commented Apr 3, 2024

A while ago I switched to mpv as my main player, so now I use it for practically everything, video player, music player, streaming player and TV. On a daily/work basis I often use macros and it is counterproductive and annoying to have to interrupt them to interact with mpv (and then rearrange everything), and even in gaming there are times when you cannot switch windows to simply change songs or pause.
So I wanted to ask if global multimedia keys can be implemented, considering that many keyboards now have dedicated media keys and I consider it a very useful feature (present in many worse players) unfortunately missing in mpv.

Thanks for the attention :)

@guidocella
Copy link
Contributor

They are already implemented on Windows and macOS. On other platforms you can bind keys that control mpv via https://mpv.io/manual/master/#json-ipc

@na-na-hi
Copy link
Contributor

na-na-hi commented Apr 3, 2024

#9336

They are already implemented on Windows and macOS.

On Windows it only works when mpv is focused, so not global.

@Lc4B
Copy link
Author

Lc4B commented Apr 3, 2024

They are already implemented on Windows and macOS. On other platforms you can bind keys that control mpv via https://mpv.io/manual/master/#json-ipc

I'm on windows, both 10 and 11, and globals don't work. I don't know if I need to set some particular parameters but I couldn't find anything in the manual

@guidocella
Copy link
Contributor

It's not implemented, I thought that was the point of --input-media-keys but apparently it just affects the focused mpv window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants