summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2019-09-21 20:11:18 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2019-09-22 09:19:45 +0200
commitcb32ad68f31de784a13ca5a2847143c4c37738ce (patch)
tree9d9d5497c9a58d54ae5ef7cb226e81dd5fb14cb7 /DOCS
parent0f938b197a79c09b01a9dcf39f02e95d9d7fb4a2 (diff)
downloadmpv-cb32ad68f31de784a13ca5a2847143c4c37738ce.tar.bz2
mpv-cb32ad68f31de784a13ca5a2847143c4c37738ce.tar.xz
command: add sub-start & sub-end properties
These properties contain the current subtitle's start and end times. Can be useful to cut sample audio through the scripting interface.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/input.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 52be5540df..4aba60cd8b 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -1916,6 +1916,17 @@ Property list
This property is experimental and might be removed in the future.
+``sub-start``
+ Return the current subtitle start time (in seconds). If there's multiple
+ current subtitles, returns the first start time. If no current subtitle is
+ present null is returned instead.
+
+``sub-end``
+ Return the current subtitle start time (in seconds). If there's multiple
+ current subtitles, return the last end time. If no current subtitle is
+ present, or if it's present but has unknown or incorrect duration, null
+ is returned instead.
+
``playlist-pos`` (RW)
Current position on playlist. The first entry is on position 0. Writing
to the property will restart playback at the written entry.