Constructor
new TextTrack(options)
Create an instance of this class.
Parameters:
| Name | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | {} | Object of option names and values Properties
|
- See:
Extends
Members
-
allowedEvents_
-
cuechange - One or more cues in the track have become active or stopped being active.
-
inner Kind
-
All possible
TextTrackKinds -
inner Mode
-
All possible
TextTrackModes
Methods
-
addCue(cue)
-
Add a cue to the internal list of cues.
Parameters:
Name Type Description cueTextTrack~Cue The cue to add to our internal list
-
removeCue(removeCue)
-
Remove a cue from our internal list
Parameters:
Name Type Description removeCueTextTrack~Cue The cue to remove from our internal list
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: