TextTrack class
This interface also inherits properties from EventTarget.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- TextTrack()
-
factory
Properties
- activeCues → TextTrackCueList?
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.no setter - addCue ↔ void Function(TextTrackCue)
-
Available on TextTrack, provided by the TextTrack$Typings extension
getter/setter pair - addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(TextTrackEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on TextTrack, provided by the TextTrack$Typings extension
Overload accessor: $1, $2no setter - cues → TextTrackCueList?
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the text track list of cues, as a TextTrackCueList object.no setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the ID of the given track.no setter - inBandMetadataTrackDispatchType → String
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the text track in-band metadata track dispatch type string.no setter - kind → TextTrackKind
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the text track kind string.no setter - label → String
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).no setter - language → String
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the text track language string.no setter - mode ↔ TextTrackMode
-
Available on TextTrack, provided by the TextTrack$Typings extension
Returns the text track mode, represented by a string from the following list:getter/setter pair - oncuechange ↔ dynamic Function(Event)?
-
Available on TextTrack, provided by the TextTrack$Typings extension
MDN Referencegetter/setter pair - removeCue ↔ void Function(TextTrackCue)
-
Available on TextTrack, provided by the TextTrack$Typings extension
getter/setter pair - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(TextTrackEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on TextTrack, provided by the TextTrack$Typings extension
Overload accessor: $1, $2no setter - 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