1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 21:06:00 +00:00
mpv/DOCS
wm4 017b3fa9db lua: synchronously wait until scripts are loaded
This makes the player wait until each script is loaded. Do this to give
the script a chance to setup all its event handlers. It might also be
useful to allow a script to change options that matter for playback.

While waiting for a script to be loaded, the player actually accepts
input. This is needed because the scripts can execute player commands
anyway while they are being "loaded". The player won't react to most
commands though: it can't quit or navigate the playlist in this state.

For deciding whether a script is finally loaded, we use a cheap hack: if
mpv_wait_event() is called, it's considered loaded. Let's hope this is
good enough. I think it's better than introducing explicit API for this.
Although I'm sure this will turn out as too simplistic some time in the
future, the same would probably happen with a more explicit API.
2014-09-06 17:02:47 +02:00
..
client_api_examples docs: cocoa example uses wakeup callback API 2014-08-12 23:40:58 +02:00
man lua: synchronously wait until scripts are loaded 2014-09-06 17:02:47 +02:00
client-api-changes.rst x11: when using --wid, inherit event flags from parent window 2014-08-31 14:48:26 +02:00
contribute.md DOCS/contribute.md: move instructions for sending patches to the top 2014-06-17 23:18:13 +02:00
crosscompile-mingw.md DOCS: fix an external link 2014-03-09 15:02:28 +01:00
edl-mpv.rst edl: extend with chapter timestamps 2014-02-19 00:06:00 +01:00
encoding.rst manpage: update config file locations 2014-06-28 15:55:09 +02:00
release-policy.md DOCS: mark the recent release in client-api-changes.rst 2014-08-12 23:01:19 +02:00
tech-overview.txt DOCS/tech-overview.txt: some updates 2014-08-18 01:21:13 +02:00
waf-buildsystem.rst DOCS/waf-buildsystem: add link to the Waf book 2014-02-06 13:45:35 +01:00