summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2019-03-11 23:01:04 +0200
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2019-09-11 21:08:04 +0300
commit5b5f77690064a1fb602e5b97e935bec65f60eb0d (patch)
tree721471181354701b2593c8d976ca58d0666ba902 /DOCS
parentfc56798acabc8f3c4c5290178a22c4e551ef7bb3 (diff)
downloadmpv-5b5f77690064a1fb602e5b97e935bec65f60eb0d.tar.bz2
mpv-5b5f77690064a1fb602e5b97e935bec65f60eb0d.tar.xz
js: expose async commands (match 159379980e)
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/javascript.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst
index 184c962a97..77a2ad8817 100644
--- a/DOCS/man/javascript.rst
+++ b/DOCS/man/javascript.rst
@@ -88,7 +88,7 @@ Scripting APIs - identical to Lua
(LE) - Last-Error, indicates that ``mp.last_error()`` can be used after the
call to test for success (empty string) or failure (non empty reason string).
-Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``.
+Where the Lua APIs use ``nil`` to indicate error, JS APIs use ``undefined``.
``mp.command(string)`` (LE)
@@ -96,6 +96,9 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``.
``mp.command_native(table [,def])`` (LE)
+``mp.command_native_async(table [,fn])`` (LE) Note: ``error`` is empty string on
+success.
+
``mp.get_property(name [,def])`` (LE)
``mp.get_property_osd(name [,def])`` (LE)