new TextTrack(options)
Create an instance of this class.
Parameters:
Name | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | {} | Object of option names and values Properties
|
- Source:
- tracks/text-track.js
- See:
Extends
Members
-
allowedEvents_
-
cuechange - One or more cues in the track have become active or stopped being active.
- Source:
- tracks/text-track.js
-
<inner> Kind
-
All possible
TextTrackKind
s- Source:
- tracks/track-enums.js
- See:
-
<inner> Mode
-
All possible
TextTrackMode
s- Source:
- tracks/track-enums.js
- See:
Methods
-
addCue(cue)
-
Add a cue to the internal list of cues.
Parameters:
Name Type Description cue
TextTrack~Cue The cue to add to our internal list
- Source:
- tracks/text-track.js
-
removeCue(removeCue)
-
Remove a cue from our internal list
Parameters:
Name Type Description removeCue
TextTrack~Cue The cue to remove from our internal list
- Source:
- tracks/text-track.js
Events
-
modechange
-
An event that fires when mode changes on this track. This allows the TextTrackList that holds this track to act accordingly.
Note: This is not part of the spec!
Type: EventTarget~Event
- Source:
- tracks/text-track.js