1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

command: make pause display the same osd-msg-bar as seek

Previously, toggling pause would generate no osd response, and changing
that wasn't even configurable. This was surprising to users who
generally expect to see *where* pause / unpause is taking place (#3028).
This commit is contained in:
Kevin Mitchell 2018-01-05 19:10:54 -08:00
parent cd8daee3d3
commit 6e974f77bd
2 changed files with 6 additions and 4 deletions

View File

@ -3140,15 +3140,15 @@ OSD
shown.
This is also used for the ``show-progress`` command (by default mapped to
``P``), and when seeking.
``P``), when toggling pause, and when seeking.
``--osd-status-msg`` is a legacy equivalent (but with a minor difference).
``--osd-status-msg=<string>``
Show a custom string during playback instead of the standard status text.
This overrides the status text used for ``--osd-level=3``, when using the
``show-progress`` command (by default mapped to ``P``), and when
seeking. Expands properties. See `Property Expansion`_.
``show-progress`` command (by default mapped to ``P``), when toggling pause,
and when seeking. Expands properties. See `Property Expansion`_.
This option has been replaced with ``--osd-msg3``. The only difference is
that this option implicitly includes ``${osd-sym-cc}``. This option is

View File

@ -4342,7 +4342,9 @@ static const struct property_osd_display {
{"ab-loop-b", .msg = "A-B loop: ${ab-loop-a} - ${ab-loop-b}"},
{"audio-device", "Audio device"},
// By default, don't display the following properties on OSD
{"pause", NULL},
{"pause",
.seek_msg = OSD_SEEK_INFO_TEXT,
.seek_bar = OSD_SEEK_INFO_BAR},
{"fullscreen", NULL},
{0}
};