Get or set the ID of the current track, i.e. can be used to switch tracks. Track IDs are unique for each type of tracks, and can be obtained from tracks.
Readonly
tracksReturns a list of all tracks.
Readonly
currentReturns the information of the current track.
Get or set the ID of the second subtitle track.
Get or set the subtitle delay in seconds.
Equivalent to setting the mpv sub-delay
property.
Load an external track from a URL.
Equivalent to clicking the corresponding menu items in IINA.
Can also be achieved by mpv's video-add
, audio-add
and sub-add
commands,
but the IINA version performs other necessary checks.
The URL or file path of the track.
Generated using TypeDoc
The interface of
core.subtitle
. You can use it to control the subtitle tracks.Seealso
The Core module