THEOplayer Web SDK
    Preparing search index...

    Interface TextTracksList

    List of text tracks.

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

    Hierarchy (View Summary)

    Indexable

    • readonly [index: number]: TextTrack

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

    Index

    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.