logo

THEOplayer > MediaTrackList

MediaTrackList interface

Inherits from TrackList<MediaTrack>. See parent page for inherited properties and methods.

List of media tracks.

Signature:

export interface MediaTrackList extends TrackList<MediaTrack> 

Properties

Property

Type

Description

length

number

The number of media tracks in the list.

Methods

Method

Description

item​(index: number): MediaTrack

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

Property Details

length

The number of media tracks in the list.

Signature:

readonly length: number;

Method Details

item

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

Signature:

item(index: number): MediaTrack;

Parameters

Parameter

Type

Description

index

number

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

Returns

The media 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