Interface TrackList<TTrack>

List of tracks.

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

Type Parameters

Hierarchy (view full)

Indexable

  • [index: number]: TTrack

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

Properties

length: number

The number of tracks in the list.

Methods

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

    Parameters

    • index: number

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

    Returns TTrack

    The track with index index in the list.