TextTrackList

The current list of TextTrack for a media file.

Constructor

new TextTrackList(tracksopt)

Create an instance of this class.

Parameters:
Name Type Attributes Default Description
tracks Array.<TextTrack> <optional>
[]

A list of TextTrack to instantiate the list with.

See:

Extends

Events

addtrack

Triggered when a track is added to a track list.

Type:
Listeners of This Event:
Properties:
Name Type Description
track Track

A reference to track that was added.

Inherited From:

change

Triggered when a different track is selected/enabled.

Type:
Listeners of This Event:
Inherited From:

removetrack

Triggered when a track is removed from track list.

Type:
Listeners of This Event:
Properties:
Name Type Description
track Track

A reference to track that was removed.

Inherited From: