Files
Velix-MPV-Core/player/javascript
Avi Halachmi (:avih) 9a47023c44 js: implement mp.register_idle
Due to earlier misinterpretation of the Lua docs as if mp.register_idle
registers a one-shot callback, the JS docs suggested to use setTimeout.

But the behavior and Lua docs are such that it's a repeating callback
which fires just before the script thread goes to sleep.

Implement it for JS too.
2018-04-07 16:02:19 -07:00
..
2018-04-07 16:02:19 -07:00