diff options
author | wm4 <wm4@nowhere> | 2015-06-11 21:20:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-11 21:42:09 +0200 |
commit | ce513dedd8b61509d58aa3d76551e1aad36573f2 (patch) | |
tree | da0c281ed44930a8b95189bfea72ed525f9aeefa /DOCS | |
parent | 478ea1d0f3a4c220f9b07f24412be7f5867e7719 (diff) | |
download | mpv-ce513dedd8b61509d58aa3d76551e1aad36573f2.tar.bz2 mpv-ce513dedd8b61509d58aa3d76551e1aad36573f2.tar.xz |
lua: export end-file event fields
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/lua.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index db4957addc..4d3fb7c3d8 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -690,6 +690,23 @@ List of events Happens after a file was unloaded. Typically, the player will load the next file right away, or quit if this was the last file. + The event has the ``reason`` field, which takes one of these values: + + ``eof`` + The file has ended. This can (but doesn't have to) include + incomplete files or broken network connections under + circumstances. + + ``stop`` + Playback was ended by a command. + + ``quit`` + Playback was ended by sending the quit command. + + ``error`` + An error happened. In this case, an ``error`` field is present with + the error string. + ``file-loaded`` Happens after a file was loaded and begins playback. |