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

The TextTrackCueList interface of the WebVTT API is an array-like object that represents a dynamically updating list of TextTrackCue objects.

MDN Reference

interface TextTrackCueList {
    length: number;
    "[iterator]"(): ArrayIterator<TextTrackCue>;
    getCueById(id: string): TextTrackCue | null;
    [index: number]: TextTrackCue;
}

Indexable

Index
length: number

The length read-only property of the TextTrackCueList interface returns the number of cues in the list.

MDN Reference

  • 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.

    MDN Reference

    Parameters

    • id: string

    Returns TextTrackCue | null

Was this helpful?