TextTrack

external class TextTrack : EventTarget(source)

This interface also inherits properties from EventTarget.

MDN Reference

Properties

Link copied to clipboard

Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.

Link copied to clipboard

Returns the text track list of cues, as a TextTrackCueList object.

Link copied to clipboard
val id: String

Returns the ID of the given track.

Link copied to clipboard

Returns the text track in-band metadata track dispatch type string.

Link copied to clipboard

Returns the text track kind string.

Link copied to clipboard

Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).

Link copied to clipboard

Returns the text track language string.

Link copied to clipboard

Returns the text track mode, represented by a string from the following list:

Functions

Link copied to clipboard

Adds the given cue to textTrack's text track list of cues.

Link copied to clipboard
Link copied to clipboard

Removes the given cue from textTrack's text track list of cues.