Interface TextTracksList

List of text tracks.

interface TextTracksList {
    length: number;
    addEventListener<TType>(type, listener): void;
    item(index): TextTrack;
    removeEventListener<TType>(type, listener): void;
    [index: number]: TextTrack;
}

Hierarchy (view full)

Indexable

[index: number]: TextTrack

Index signature to get the text track at the requested index in the list.

Properties

length: number

The number of text tracks in the list.

Methods

  • Return the text track at the requested index in the list.

    Parameters

    • index: number

      A number representing the index of a text track in the list.

    Returns TextTrack

    The text track with index index in the list.