From 8f9785d128eef0eae656d32d664ae1a8bff0bb12 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 17 Dec 2017 01:25:23 +0100 Subject: 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. --- DOCS/man/javascript.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'DOCS/man/javascript.rst') 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 -- cgit v1.2.3