Dart SDK
dart:html
TextTrack
class
TextTrack
Constants
Properties
Methods
Constants
cueChangeEvent
Properties
activeCues
cues
id
kind
label
language
mode
regions
onCueChange
on
Methods
addCue
addRegion
removeCue
removeRegion
addEventListener
removeEventListener
dispatchEvent
(Not documented.)
Annotations
DocsEditable()
DomName('TextTrack')
Experimental()
Extends
Object
EventTarget
TextTrack
Constants
EventStreamProvider
<
Event
>
cueChangeEvent
=
const
EventStreamProvider
<
Event
>
('cuechange')
const
Static factory designed to expose cuechange events to event handlers that are not necessarily instances of
TextTrack
.
Properties
TextTrackCueList
activeCues
read-only
TextTrackCueList
cues
read-only
String
id
read-only
String
kind
read-only
String
label
read-only
String
language
read-only
String
mode
read / write
VttRegionList
regions
read-only
Stream
<
Event
>
onCueChange
read-only
Stream of cuechange events handled by this [TextTrack].
Events
on
read-only ,
inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
Methods
addCue
(
TextTrackCue
cue
) →
void
addRegion
(
VttRegion
region
) →
void
removeCue
(
TextTrackCue
cue
) →
void
removeRegion
(
VttRegion
region
) →
void
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited