mpv/DOCS/man
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
..
af.rst man: fix a whole bunch of typos 2014-09-01 04:27:13 +02:00
ao.rst man: fix a whole bunch of typos 2014-09-01 04:27:13 +02:00
changes.rst man: fix a whole bunch of typos 2014-09-01 04:27:13 +02:00
encode.rst man: fix a whole bunch of typos 2014-09-01 04:27:13 +02:00
input.rst manpage: fix sub_add description 2014-09-05 02:42:25 +02:00
lua.rst lua: synchronously wait until scripts are loaded 2014-09-06 17:02:47 +02:00
mpv.rst man: fix a whole bunch of typos 2014-09-01 04:27:13 +02:00
options.rst vo_corevideo: remove this VO 2014-09-06 14:10:22 +02:00
osc.rst man: fix a whole bunch of typos 2014-09-01 04:27:13 +02:00
vf.rst man: fix a whole bunch of typos 2014-09-01 04:27:13 +02:00
vo.rst vo_corevideo: remove this VO 2014-09-06 14:10:22 +02:00