From cb32ad68f31de784a13ca5a2847143c4c37738ce Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 21 Sep 2019 20:11:18 +0200 Subject: 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. --- DOCS/man/input.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'DOCS') 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. -- cgit v1.2.3