Readonly
activeThe activeCues
read-only property of the TextTrack interface returns a TextTrackCueList object listing the currently active cues.
Readonly
cuesThe cues
read-only property of the TextTrack interface returns a TextTrackCueList object containing all of the track's cues.
Readonly
idThe id
read-only property of the TextTrack interface returns the ID of the track if it has one.
Readonly
inThe 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.
Readonly
kindThe kind
read-only property of the TextTrack interface returns the kind of text track this object represents.
Readonly
labelThe label
read-only property of the TextTrack interface returns a human-readable label for the text track, if it is available.
Readonly
languageThe 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.
Optional
options: 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.
Optional
options: boolean | AddEventListenerOptionsThe 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.
Optional
options: boolean | EventListenerOptionsThe removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptions
The
TextTrack
interface of the WebVTT API represents a text track associated with a media element.MDN Reference