summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2018-01-02 14:20:53 +0000
committerRicardo Constantino <wiiaboo@gmail.com>2018-01-02 16:01:22 +0000
commit89f81da481c81cda1abd7c971b36f00ea80d80fe (patch)
tree612e6d89e775e41c3e5270b59c92c6c13b6c8b73 /DOCS/man
parent97816bbef0f97cfda7abdbe560707481d5f68ccd (diff)
downloadmpv-89f81da481c81cda1abd7c971b36f00ea80d80fe.tar.bz2
mpv-89f81da481c81cda1abd7c971b36f00ea80d80fe.tar.xz
player: add on_load_fail hook
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/input.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 2294197368..16d8ecb45d 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -790,6 +790,13 @@ The following hooks are currently defined:
``file-local-options/<option name>``. The player will wait until all
hooks are run.
+``on_load_fail``
+ Called after after a file has been opened, but failed to. This can be
+ used to provide a fallback in case native demuxers failed to recognize
+ the file, instead of always running before the native demuxers like
+ ``on_load``. Demux will only be retried if ``stream-open-filename``
+ was changed.
+
``on_preloaded``
Called after a file has been opened, and before tracks are selected and
decoders are created. This has some usefulness if an API users wants