TrackEvent class
The interface, which is part of the HTML DOM specification, is
used for events which represent changes to a set of available
tracks on an HTML media element; these events are addtrack
and
removetrack
.
It's important not to confuse with the RTCTrackEvent
interface, which is used for tracks which are part of an
RTCPeerConnection.
Events based on are always sent to one of the media track list
types:
Events involving video tracks are always sent to the
VideoTrackList found in HTMLMediaElement.videoTracks
Events involving audio tracks are always sent to the
AudioTrackList specified in HTMLMediaElement.audioTracks
Events affecting text tracks are sent to the TextTrackList
object indicated by HTMLMediaElement.textTracks
.
Event
TrackEvent
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- TrackEvent(String type, [TrackEventInit? eventInitDict])
-
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