diff options
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/interface-changes/add-input-commands.txt | 1 | ||||
-rw-r--r-- | DOCS/man/options.rst | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/DOCS/interface-changes/add-input-commands.txt b/DOCS/interface-changes/add-input-commands.txt new file mode 100644 index 0000000000..3db6bd4055 --- /dev/null +++ b/DOCS/interface-changes/add-input-commands.txt @@ -0,0 +1 @@ +add `--input-comands` option diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 2299e3f14b..1b6e1465de 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -4101,6 +4101,21 @@ Input ``--input-cmdlist`` Prints all commands that can be bound to keys. +``--input-commands=<cmd1,cmd2,...>`` + Define a list of commands for mpv to run. The syntax is the same as format + as ``input.conf`` but without the key binding argument at the beginning. + When this option is set at startup, the commands will run after audio and + video playback are about to begin if applicable (in idle mode with no file, + it will run immediately). When changing values at runtime, the commands will + also run as soon as possible. + + This is a string list option. See `List Options`_ for details. + + .. admonition:: Example + + ``--input-commands="playlist-play-index 1,set ao-volume 40"`` + sets the playlist index to 1 and the ao-volume to 40 + ``--input-doubleclick-time=<milliseconds>`` Time in milliseconds to recognize two consecutive button presses as a double-click (default: 300). |