summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-16 23:06:06 +0100
committerwm4 <wm4@nowhere>2014-01-16 23:06:41 +0100
commitd3b56435896d5fde202f56214e3ea3c2e153465d (patch)
tree7cbf71ce4a5f6a043bebeb875a420ac1eaa9e489 /DOCS/man
parent82067e6ac37f73099923c86cf38fc44100a8d3c2 (diff)
downloadmpv-d3b56435896d5fde202f56214e3ea3c2e153465d.tar.bz2
mpv-d3b56435896d5fde202f56214e3ea3c2e153465d.tar.xz
lua: add a --lua-opts option, which can be queried by scripts
The values set by this new option can be queried by Lua scripts using the mp.getopt() function. The function takes a string parameter, and returns the value of the first key that matches. If no key matches, nil is returned.
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/en/options.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst
index f1ee540793..20e8ea4a9d 100644
--- a/DOCS/man/en/options.rst
+++ b/DOCS/man/en/options.rst
@@ -1296,6 +1296,11 @@ OPTIONS
Load a Lua script. You can load multiple scripts by separating them with
commas (``,``).
+``--lua-opts=key1=value1,key2=value2,...``
+ Set options for scripts. A Lua script can query an option by key. If an
+ option is used and what semantics the option value has depends entirely on
+ the loaded Lua scripts. Values not claimed by any scripts are ignored.
+
``--mc=<seconds/frame>``
Maximum A-V sync correction per frame (in seconds)