logo
THEOplayer
ABR
Miscellaneous
Ads
Caching
Content protection
Analytics
Casting
Media and Text Tracks
Source
Verizon Media
Events
HESP
SSAI
Network
Presentation
Player
PreloadTypeTrackTrackBytesDownloadedDataTrackChangeEventTrackEventMapTrackInfoLabelTrackListTrackListEventMapTrackUpdateEvent
UI
VR

THEOplayer > TrackList

TrackList interface

Inherits from Track> extends ReadonlyArray<TTrack>, EventDispatcher<TrackListEventMap> . See parent page for inherited properties and methods.

List of tracks.

Signature:

export interface TrackList<TTrack extends Track> extends ReadonlyArray<TTrack>, EventDispatcher<TrackListEventMap> 

Properties

Property

Type

Description

length

number

The number of tracks in the list.

Methods

Method

Description

item​(index: number): TTrack

Return the track at the requested index in the list.

Property Details

length

The number of tracks in the list.

Signature:

readonly length: number;

Method Details

item

Return the track at the requested index in the list.

Signature:

item(index: number): TTrack;

Parameters

Parameter

Type

Description

index

number

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

Returns

The track with index index in the list.

github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2022. All Rights Reserved.
Leuven
New York
Singapore
Barcelona