Interface TextTracksList

List of text tracks.

interface TextTracksList {
    length: number;
    addEventListener<TType>(type: TType | readonly TType[], listener: EventListener<TrackListEventMap[TType]>): void;
    item(index: number): TextTrack;
    removeEventListener<TType>(type: TType | readonly TType[], listener: EventListener<TrackListEventMap[TType]>): 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.