TextTrackList class

The interface is used to represent a list of the text tracks defined by the <track> element, with each track represented by a separate textTrack object in the list. Retrieve an instance of this object with the textTracks property of an HTMLMediaElement object. For a given HTMLMediaElement object media, the individual tracks can be accessed using:

[media.TextTracksn], to get the nth text track from the object’s list of text tracks the media.textTracks.getTrackById() method

EventTarget

TextTrackList

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

TextTrackList()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited