diff options
author | Ripose <ripose@protonmail.com> | 2021-07-12 11:29:59 -0700 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-07-12 21:07:37 +0000 |
commit | 34cfe9d89b19b3080bf62168803a8cb239c03c4c (patch) | |
tree | 9746f03fd0300180521c39b75e792bf47ed3c959 /DOCS | |
parent | 383acd41a8d8f0620b0bf20bb2be23d629d67285 (diff) | |
download | mpv-34cfe9d89b19b3080bf62168803a8cb239c03c4c.tar.bz2 mpv-34cfe9d89b19b3080bf62168803a8cb239c03c4c.tar.xz |
command: add secondary-sub-start and secondary-sub-end properties
Adds secondary-sub-start and secondary-sub-end properties by setting
the current_track index in the m_property's priv variable which later
gets accessed in get_times. Also adds a test of the secondary subtitle
time properties in tests/subtimes.js bound to 'T'.
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/input.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 66f7dbdace..acb1f0bf75 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -2636,12 +2636,18 @@ Property list subtitles, returns the first start time. If no current subtitle is present null is returned instead. +``secondary-sub-start`` + Same as ``sub-start``, but for the secondary subtitles. + ``sub-end`` The current subtitle end 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. +``secondary-sub-end`` + Same as ``sub-end``, but for the secondary subtitles. + ``playlist-pos`` (RW) Current position on playlist. The first entry is on position 0. Writing to this property may start playback at the new position. |