Class TextTrackDescription
-
- All Implemented Interfaces:
public final class TextTrackDescriptionA TextTrack description contains information of a side-loaded text track, that can be added to the source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTextTrackDescription.BuilderThe builder for TextTrackDescription.
-
Constructor Summary
Constructors Constructor Description TextTrackDescription(String src, Boolean isDefault, TextTrackKind kind, String srclang, String label, TextTrackType format)
-
Method Summary
Modifier and Type Method Description final StringgetSrc()The source URL where the text track can be downloaded from. final BooleanisDefault()Returns whether this textTrack is the default text track. final TextTrackKindgetKind()The kind of the text track. final StringgetSrclang()The main language of the track. final StringgetLabel()The label for the track which can be used to identify it. final TextTrackTypegetFormat()The format of the track. -
-
Constructor Detail
-
TextTrackDescription
TextTrackDescription(String src, Boolean isDefault, TextTrackKind kind, String srclang, String label, TextTrackType format)
-
-
Method Detail
-
getKind
final TextTrackKind getKind()
The kind of the text track. (Nullable)
For all possibilities, see TextTrackKind.
-
getSrclang
final String getSrclang()
The main language of the track. (Nullable)
-
getLabel
final String getLabel()
The label for the track which can be used to identify it. (Nullable)
-
getFormat
final TextTrackType getFormat()
The format of the track.
Can be one of:
TextTrackType.SRT: The track contains SRT (SubRip Text) content.
TextTrackType.TTML: The track contains TTML (Timed Text Markup Language) content.
TextTrackType.WEBVTT: The track contains WebVTT (Web Video Text Tracks) content.
TextTrackType.NONE (default): The format is auto-detected based on its content.
-
-
-
-