diff options
author | sfan5 <sfan5@live.de> | 2017-12-17 01:25:23 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-13 20:16:01 -0800 |
commit | 8f9785d128eef0eae656d32d664ae1a8bff0bb12 (patch) | |
tree | 61250cdc4cd0505492e245757450e1a672713640 /DOCS/man/javascript.rst | |
parent | f17246fec15963e7cc098cf7ba7263ad02877b99 (diff) | |
download | mpv-8f9785d128eef0eae656d32d664ae1a8bff0bb12.tar.bz2 mpv-8f9785d128eef0eae656d32d664ae1a8bff0bb12.tar.xz |
lua+js: Implement utils.getpid()
Usable for uniquely identifying mpv instances from
subprocesses, controlling mpv with AppleScript, ...
Adds a new mp_getpid() wrapper for cross-platform reasons.
Diffstat (limited to 'DOCS/man/javascript.rst')
-rw-r--r-- | DOCS/man/javascript.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst index 2ebdb15896..cd553510eb 100644 --- a/DOCS/man/javascript.rst +++ b/DOCS/man/javascript.rst @@ -180,6 +180,8 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. ``mp.utils.subprocess_detached(t)`` +``mp.utils.getpid()`` (LE) + ``mp.add_hook(type, priority, fn)`` Additional utilities |