new TextTrackList( [tracks])
Create an instance of this class.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
tracks |
Array.<TextTrack> |
<optional> |
[] | A list of |
- Source:
- tracks/text-track-list.js
- See:
Extends
Events
-
addtrack
-
Triggered when a track is added to a track list.
Type: EventTarget~Event
- Inherited From:
- Source:
- tracks/track-list.js
Properties:
Name Type Description track
Track A reference to track that was added.
Listeners of This Event:
-
change
-
Triggered when a different track is selected/enabled.
Type: EventTarget~Event
- Inherited From:
- Source:
- tracks/track-list.js
Listeners of This Event:
-
removetrack
-
Triggered when a track is removed from track list.
Type: EventTarget~Event
- Inherited From:
- Source:
- tracks/track-list.js
Properties:
Name Type Description track
Track A reference to track that was removed.
Listeners of This Event: