summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-11 00:25:07 +0200
committerwm4 <wm4@nowhere>2014-10-11 00:33:09 +0200
commitc5c21abf78811d1458dc4ade95e5f04cb4b14733 (patch)
treee1ad8e18ee2cf41e23f1742cfd3aaed628e72ee0 /DOCS
parent63e2b6c4aef2afd5879b3cfb2b172ee05f17f765 (diff)
downloadmpv-c5c21abf78811d1458dc4ade95e5f04cb4b14733.tar.bz2
mpv-c5c21abf78811d1458dc4ade95e5f04cb4b14733.tar.xz
lua: add command_native() function
This is the Lua equivalent of mpv_command_node().
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/lua.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index 1c4605eacd..a01e429034 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -94,6 +94,15 @@ The ``mp`` module is preloaded, although it can be loaded manually with
the ``expand-properties`` prefix, or the ``mp.get_property`` family of
functions.
+``mp.command_native(table [,def])``
+ Similar to ``mp.commandv``, but pass the argument list as table. This has
+ the advantage that in at least some cases, arguments can be passed as
+ native types.
+
+ Returns a result table on success (usually empty), or ``def, error`` on
+ error. ``def`` is the second parameter provided to the function, and is
+ nil if it's missing.
+
``mp.get_property(name [,def])``
Return the value of the given property as string. These are the same
properties as used in input.conf. See `Properties`_ for a list of