Skip to content

mac/apphub: honor --media-controls for RemoteCommandCenter - #18810

Open
vrodic wants to merge 1 commit into
mpv-player:masterfrom
vrodic:mac-media-controls
Open

vrodic wants to merge 1 commit into
mpv-player:masterfrom
vrodic:mac-media-controls

Conversation

@vrodic

@vrodic vrodic commented Nov 11, 2026

Copy link
Copy Markdown

On macOS, RemoteCommandCenter was always created. For every loaded file it requests a QuickLook thumbnail to use as Now Playing cover art, which makes the system thumbnail agent generate and cache thumbnails of everything played. Neither --media-controls (documented as Windows only) nor --input-media-keys could turn this off.

This creates RemoteCommandCenter in initMpv, after options are parsed, and only when --media-controls is enabled. It also updates the option docs and adds an interface-changes note.

Tested on macOS (arm64) with the CLI player: with --media-controls=no there is no Now Playing activity and no connection to com.apple.quicklook.ThumbnailsAgent. With yes (the default) Now Playing works as before. Not tested with libmpv embedders. Since media-controls defaults to off for libmpv, they no longer get Now Playing info unless they enable the option.

🤖 Generated with Claude Code

Comment thread DOCS/man/options.rst Resolved
@kasper93

Copy link
Copy Markdown
Member

This probably is related to #17719 and also note that --input-media-keys is currently mishandled on macOS, because it not only enables media keys, but in fact whole media controls.

@vrodic
vrodic force-pushed the mac-media-controls branch 2 times, most recently from 932542f to 3ddc44d Compare November 11, 2026 06:47
RemoteCommandCenter was always created on macOS. It publishes Now
Playing info and, for every loaded file, requests a QuickLook thumbnail
to use as cover art, which makes the system thumbnail agent generate
and cache thumbnails of everything played. There was no way to turn
this off at runtime, since --media-controls was Windows only and
--input-media-keys only gates the remote commands.

Only create it in initMpv when --media-controls is enabled, after
options have been parsed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vrodic
vrodic force-pushed the mac-media-controls branch from 3ddc44d to 2e395d8 Compare November 11, 2026 06:53
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

Successfully merging this pull request may close these issues.

2 participants