ReadonlyactiveThe activeCues read-only property of the TextTrack interface returns a TextTrackCueList object listing the currently active cues.
ReadonlycuesThe cues read-only property of the TextTrack interface returns a TextTrackCueList object containing all of the track's cues.
ReadonlyidThe id read-only property of the TextTrack interface returns the ID of the track if it has one.
ReadonlyinThe 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.
ReadonlykindThe kind read-only property of the TextTrack interface returns the kind of text track this object represents.
ReadonlylabelThe label read-only property of the TextTrack interface returns a human-readable label for the text track, if it is available.
ReadonlylanguageThe language read-only property of the TextTrack interface returns the language of the text track.
The TextTrack interface's mode property is a string specifying and controlling the text track's mode: disabled, hidden, or showing.
The addCue() method of the TextTrack interface adds a new cue to the list of cues.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The removeCue() method of the TextTrack interface removes a cue from the list of cues.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
The
TextTrackinterface of the WebVTT API represents a text track associated with a media element.MDN Reference