Usable for uniquely identifying mpv instances from subprocesses, controlling mpv with AppleScript, ... Adds a new mp_getpid() wrapper for cross-platform reasons.
Showing the changes to DOCS/man/javascript.rst (1 of 5 files). Show all
Unified · Split
| @@ -180,6 +180,8 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. · 179 unmodified lines | ||
| 180 | 180 | |
| 181 | 181 | ``mp.utils.subprocess_detached(t)`` |
| 182 | 182 | |
| 183 | +``mp.utils.getpid()`` (LE) | |
| 184 | + | |
| 183 | 185 | ``mp.add_hook(type, priority, fn)`` |
| 184 | 186 | |
| 185 | 187 | Additional utilities |