For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface TextTrackCueList
interface TextTrackCueList {
length: number;
"[iterator]"(): ArrayIterator<TextTrackCue>;
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
length: number;
"[iterator]"(): ArrayIterator<TextTrackCue>;
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
Indexable
Properties
Readonlylength
length: number
The length read-only property of the TextTrackCueList interface returns the number of cues in the list.
Methods
[iterator]
-
Returns ArrayIterator<TextTrackCue>
getCueById
-
The
getCueById()method of the TextTrackCueList interface returns the first VTTCue in the list represented by the TextTrackCueList object whose identifier matches the value of id.Parameters
- id: string
Returns TextTrackCue | null
The
TextTrackCueListinterface of the WebVTT API is an array-like object that represents a dynamically updating list of TextTrackCue objects.MDN Reference