You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for --media-controls on more platforms #17719
I thought macOS already had basically this functionality? Maybe it's not specifically integrated with the --media-controls option though. On linux this doesn't exist besides using mpris and even that depends on the DE really. We've left that to plugins for all these years and never integrated it.
Is capturing media keys when mpv is in focus. And act upon them.
in the macOS case mpv never had to be in focus, as long as no other app is stealing the media key priority. it worked a little bit different with the old mechanism, which was replaced because Apple 'removed' it.
--media-controls
Is integration with system media playback controls, which can be used when mpv is hidden or on lock screen.
correct me if i am wrong with my assumption, so "media playback controls" are the 'software controls' from the system, also see below.
this overlaps on macOS, eg if you want the media keys on the keyboard to work you automatically get the 'software controls' integrated into the system. these for example:
this overlaps on macOS, eg if you want the media keys on the keyboard to work you automatically get the 'software controls' integrated into the system. these for example:
This overlaps on Windows too, because once you implement global media controls, naturally the media keys will be working by controlling the media controls (those on your screenshot). Those media controls will then send a command to the player. --input-media-keys is however implementing support for processing media keys commands directly by input.c, without intermediary proxy application.
In practice without proxy application that handles key commands, mpv can get only --input-media-keys when in focus. This it implementation detail, but I think it gives intuition about the difference in mechanism.
IOW, --media-controls is basically IPC between media player shim implemented by your operating system task bar / shell. While --input-media-keys is lower level processing of media keys/commands key presses, which you can rebind in your input.conf for example. While you can't rebind IPC commands, because they are not keys.
Input media keys (--input-media-keys) are working on Windows, X11, Wayland, search for MP_KEY_REWIND for example. While on Linux the config option is actually not implemented, they are always mapped, they are still bindable and work. While we don't have implemented IPC mechanism like mpris, which would provide system media controls (--media-controls)
Long story short, I think macOS is implementing --media-controls IPC, not the lower level input, as implemented on all other platforms.
Activity
Dudemanguy commentedon Apr 8, 2026
I thought macOS already had basically this functionality? Maybe it's not specifically integrated with the
--media-controlsoption though. On linux this doesn't exist besides using mpris and even that depends on the DE really. We've left that to plugins for all these years and never integrated it.Akemi commentedon Apr 8, 2026
--input-media-keysis what is used on macOS. i am not sure what the difference is supposed to be to--media-controls?kasper93 commentedon Apr 8, 2026
Is capturing media keys when mpv is in focus. And act upon them.
Is integration with system media playback controls, which can be used when mpv is hidden or on lock screen.
Akemi commentedon Apr 9, 2026
in the macOS case mpv never had to be in focus, as long as no other app is stealing the media key priority. it worked a little bit different with the old mechanism, which was replaced because Apple 'removed' it.
correct me if i am wrong with my assumption, so "media playback controls" are the 'software controls' from the system, also see below.
this overlaps on macOS, eg if you want the media keys on the keyboard to work you automatically get the 'software controls' integrated into the system. these for example:
kasper93 commentedon Apr 9, 2026
This overlaps on Windows too, because once you implement global media controls, naturally the media keys will be working by controlling the media controls (those on your screenshot). Those media controls will then send a command to the player.
--input-media-keysis however implementing support for processing media keys commands directly by input.c, without intermediary proxy application.In practice without proxy application that handles key commands, mpv can get only
--input-media-keyswhen in focus. This it implementation detail, but I think it gives intuition about the difference in mechanism.IOW,
--media-controlsis basically IPC between media player shim implemented by your operating system task bar / shell. While--input-media-keysis lower level processing of media keys/commands key presses, which you can rebind in your input.conf for example. While you can't rebind IPC commands, because they are not keys.Input media keys (
--input-media-keys) are working on Windows, X11, Wayland, search forMP_KEY_REWINDfor example. While on Linux the config option is actually not implemented, they are always mapped, they are still bindable and work. While we don't have implemented IPC mechanism like mpris, which would provide system media controls (--media-controls)Long story short, I think macOS is implementing
--media-controlsIPC, not the lower level input, as implemented on all other platforms.