TextTrack
The TextTrack
interface of the WebVTT API represents a text track associated with a media element.
Properties
The activeCues
read-only property of the TextTrack interface returns a TextTrackCueList object listing the currently active cues.
The cues
read-only property of the TextTrack interface returns a TextTrackCueList object containing all of the track's cues.
The inBandMetadataTrackDispatchType
read-only property of the TextTrack interface returns the text track's in-band metadata dispatch type of the text track represented by the TextTrack object.
The kind
read-only property of the TextTrack interface returns the kind of text track this object represents.
The TextTrack interface's mode
property is a string specifying and controlling the text track's mode: disabled
, hidden
, or showing
.