-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Media buttons not working when mpv isn't focused #9336
Comments
Global hotkeys are generally not supported in mpv I think. They are supported in mpv.net via global-input.conf file. There might be a way using AutoHotkey, if you can find out how to send commands to mpv with JSON IPC, in mpv.net it's possible to send input commands via CLI without JSON IPC: https://github.com/stax76/mpv.net/blob/master/docs/Manual.md#--commandinput-command |
Global hotkeys in general are not supported, but global media keys should work on windows and osx, and are supposedly enabled by default. See https://mpv.io/manual/master/#options-input-media-keys I tested it on osx and it works. On windows it should work but I don't have a KB with media keys to test. |
Yes they do work but if and only if mpv is focused or on top, if it's in background(not on top) or minimized it won't work. |
AutoHotkey is an essential tool on Windows, for global mpv media keys the following works:
|
Sure works for play/pause. Forward/Backward, stop media keys won't work. |
mpv 0.34 has the same issue. |
I tried the latest build here, but it doesn't seem to work. |
It works, but if you have multiple media players open, you have to select the one you want to control in media controls window. |
post logs |
If you want to try Media Control, you can use my builds: https://github.com/zhongfly/mpv-winbuild/releases/latest |
I noticed that there are no thumbnails (album art) on the media controls when playing music, is that expected? What about 6a43514 ? |
There are multiple factors that may affect if thumbnail is shown or not. Do you have exact example when it fails and should work? I can look, but need steps to reproduce. |
No matter the albumart is internal or external, there are no thumbnails in media control. This is a sample file. I am using @zhongfly's build with no config file for test. |
Interestingly video files are ok, as long as windows explorer can show thumbnails, media controls can. Otherwise it will show the mpv icon. I'm running windows 10 22h2. |
How do you manage to make it show the mpv logo and name it the top left corner? It doesn't work for me. I'm curious what it is based on. |
It should be one of those commands: https://github.com/shinchiro/mpv-packaging/blob/master/mpv-root/installer/mpv-install.bat |
someone™ should port it to mpv. Not by default, but |
Important Information
Provide following Information:
Reproduction steps
1: Start mpv in any way you want(exe or terminal).
2: Focus on another window like a browser or game.
3: try to use media buttons.
Expected behavior
The player receives the media button input
Actual behavior
The player doesn't receive the media button input
Log file
output.txt.
The text was updated successfully, but these errors were encountered: