pub struct SubtitleTrack {
pub language: Option<String>,
pub title: Option<String>,
pub forced: bool,
pub default: bool,
pub external: bool,
pub role: SubtitleRole,
pub timing: Option<SubtitleTiming>,
pub download: Option<SubtitleDownload>,
}Fields§
§language: Option<String>An ISO 639-2 code such as eng, when the file says.
title: Option<String>§forced: boolOnly for foreign-language parts of the dialogue; shown even when
subtitles are off. The same as role == Forced.
default: bool§external: boolFrom a separate file next to the media, not inside it.
role: SubtitleRoleWhat the track is for, whatever its title says.
timing: Option<SubtitleTiming>How the track is timed: an external text track’s sync and
offset, the same for every user. Only for an external text track
(SRT, WebVTT, ASS), in an item’s tracks; None for every other
track, whose timing is the file’s. Read as None when left out,
as a download’s tracks kept by an older SDK lack it.
download: Option<SubtitleDownload>Where a track someone downloaded came from: its source,
who downloaded it and when, in an item’s tracks; None for every
track that was not downloaded. Read as None when left out, as
timing is.