VideoTrackList class

The interface is used to represent a list of the video tracks contained within a <video> element, with each track represented by a separate VideoTrack object in the list. Retrieve an instance of this object with HTMLMediaElement.videoTracks. The individual tracks can be accessed using array syntax or functions such as forEach() for example.

EventTarget

VideoTrackList

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

Constructors

VideoTrackList()
factory

Properties

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

Available on VideoTrackList, provided by the PropsVideoTrackList extension

no setter
onaddtrack EventHandlerNonNull<Event>?

Available on VideoTrackList, provided by the PropsVideoTrackList extension

getter/setter pair
onchange EventHandlerNonNull<Event>?

Available on VideoTrackList, provided by the PropsVideoTrackList extension

getter/setter pair
onremovetrack EventHandlerNonNull<Event>?

Available on VideoTrackList, provided by the PropsVideoTrackList extension

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

Available on VideoTrackList, provided by the PropsVideoTrackList extension

no setter

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) VideoTrack?

Available on VideoTrackList, provided by the PropsVideoTrackList 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