It is now handled internally by the libmpv profile. Since `player` was the default option, the impact should be minimal, as it is uncommon to override the default option with the same value. yes/no args will function the same way as before this commit.
Unified · Split
| @@ -0,0 +1 @@ | ||
| 1 | +remove `player` argument form `--media-controls`, it's handled internally now. | |
| @@ -7646,12 +7646,10 @@ Miscellaneous · 7645 unmodified lines | ||
| 7646 | 7646 | |
| 7647 | 7647 | .. warning:: Using realtime priority can cause system lockup. |
| 7648 | 7648 | |
| 7649 | −``--media-controls=<yes|player|no>`` | |
| 7649 | +``--media-controls=<yes|no>`` | |
| 7650 | 7650 | (Windows only) |
| 7651 | 7651 | Enable integration of media control interface SystemMediaTransportControls. |
| 7652 | − If set to ``player``, only the player will use the controls. Setting it to | |
| 7653 | − ``yes`` will also enable the controls for libmpv integrations. | |
| 7654 | − (default: ``player``) | |
| 7652 | + Default: yes (except for libmpv) | |
| 7655 | 7653 | |
| 7656 | 7654 | ``--force-media-title=<string>`` |
| 7657 | 7655 | Force the contents of the ``media-title`` property to this value. Useful |
| @@ -28,6 +28,7 @@ input-default-bindings=no · 27 unmodified lines | ||
| 28 | 28 | input-vo-keyboard=no |
| 29 | 29 | # macOS global input hooks |
| 30 | 30 | input-media-keys=no |
| 31 | +media-controls=no | |
| 31 | 32 | |
| 32 | 33 | [encoding] |
| 33 | 34 | vo=lavc |
| @@ -517,8 +517,7 @@ static const m_option_t mp_opts[] = { · 516 unmodified lines | ||
| 517 | 517 | {"idle", IDLE_PRIORITY_CLASS}), |
| 518 | 518 | .flags = UPDATE_PRIORITY}, |
| 519 | 519 | #endif |
| 520 | − {"media-controls", OPT_CHOICE(media_controls, | |
| 521 | − {"no", 0}, {"player", 1}, {"yes", 2})}, | |
| 520 | + {"media-controls", OPT_BOOL(media_controls)}, | |
| 522 | 521 | {"config", OPT_BOOL(load_config), .flags = M_OPT_PRE_PARSE}, |
| 523 | 522 | {"config-dir", OPT_STRING(force_configdir), |
| 524 | 523 | .flags = M_OPT_NOCFG | M_OPT_PRE_PARSE | M_OPT_FILE}, |
| @@ -1026,7 +1025,7 @@ static const struct MPOpts mp_default_opts = { · 501 unmodified lines | ||
| 1026 | 1025 | .osd_bar_visible = true, |
| 1027 | 1026 | .screenshot_template = "mpv-shot%n", |
| 1028 | 1027 | .play_dir = 1, |
| 1029 | − .media_controls = 1, | |
| 1028 | + .media_controls = true, | |
| 1030 | 1029 | .video_exts = (char *[]){ |
| 1031 | 1030 | "3g2", "3gp", "avi", "flv", "m2ts", "m4v", "mj2", "mkv", "mov", "mp4", |
| 1032 | 1031 | "mpeg", "mpg", "ogv", "rmvb", "ts", "webm", "wmv", "y4m", NULL |
| @@ -337,7 +337,7 @@ typedef struct MPOpts { · 336 unmodified lines | ||
| 337 | 337 | bool osd_bar_visible; |
| 338 | 338 | |
| 339 | 339 | int w32_priority; |
| 340 | − int media_controls; | |
| 340 | + bool media_controls; | |
| 341 | 341 | |
| 342 | 342 | struct bluray_opts *stream_bluray_opts; |
| 343 | 343 | struct cdda_opts *stream_cdda_opts; |
| @@ -406,7 +406,7 @@ int mp_initialize(struct MPContext *mpctx, char **options) · 405 unmodified lines | ||
| 406 | 406 | #endif |
| 407 | 407 | |
| 408 | 408 | #if HAVE_WIN32_SMTC |
| 409 | − if (opts->media_controls == 2 || (mpctx->is_cli && opts->media_controls == 1)) | |
| 409 | + if (opts->media_controls) | |
| 410 | 410 | mp_smtc_init(mp_new_client(mpctx->clients, "SystemMediaTransportControls")); |
| 411 | 411 | #endif |
| 412 | 412 | |