discontinuedPackage js_bindings has been discontinued and replaced by typings.

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.new()
  • @staticInterop

Constructors

TextTrackList()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int

Available on TextTrackList, provided by the PropsTextTrackList extension

no setter
onaddtrack ↔ EventHandlerNonNull<Event>?

Available on TextTrackList, provided by the PropsTextTrackList extension

getter/setter pair
onchange ↔ EventHandlerNonNull<Event>?

Available on TextTrackList, provided by the PropsTextTrackList extension

getter/setter pair
onremovetrack ↔ EventHandlerNonNull<Event>?

Available on TextTrackList, provided by the PropsTextTrackList extension

getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

dispatchEvent(Event event) → bool

Available on EventTarget, provided by the PropsEventTarget extension

getTrackById(String id) → TextTrack?

Available on TextTrackList, provided by the PropsTextTrackList extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

toString() → String
A string representation of this object.
inherited

Operators

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