Members
- 
activeCues :TextTrackCueList
 - 
    
    
The list text track cues that are currently active for this TextTrack.
 - 
cues :TextTrackCueList
 - 
    
    
The text track cue list for this TextTrack.
 - 
readonly default :boolean
 - 
    
    
If this track was set to be on or off by default. Cannot be changed after creation.
 - 
enabled :boolean
 - 
    
    
If this
AudioTrackis enabled or not. When setting this will fire AudioTrack#enabledchange if the state of enabled is changed.Fires:
 - 
readonly id :string
 - 
    
    
The id of this track. Cannot be changed after creation.
 - 
readonly kind :string
 - 
    
    
The kind of track that this is. Cannot be changed after creation.
 - 
readonly label :string
 - 
    
    
The label of this track. Cannot be changed after creation.
 - 
readonly language :string
 - 
    
    
The two letter language code for this track. Cannot be changed after creation.
 - 
length :number
 - 
    
    
The current number of
Tracks in the this Trackist. - 
length :number
 - 
    
    
The current number of
TextTrackCues in the TextTrackCueList. - 
length :number
 - 
    
    
The current number of
Tracks in the this Trackist. - 
mode :string
 - 
    
    
Set the mode of this TextTrack to a valid TextTrack~Mode. Will not be set if setting to an invalid mode.
Fires:
 - 
constant NONE :HTMLTrackElement~ReadyState
 - 
    
    
    
 - 
readyState :HTMLTrackElement~ReadyState
 - 
    
    
The current ready state of the track element.
 - 
selected :boolean
 - 
    
    
If this
VideoTrackis selected or not. When setting this will fire VideoTrack#selectedchange if the state of selected changed.Fires:
 - 
track :TextTrack
 - 
    
    
The underlying TextTrack object.
 
Methods
- 
    
        
        
createTrackHelper(self, kind, labelopt, languageopt, optionsopt) → {TextTrack}
 - 
    
    
    
    
    
    
    
    
Parameters:
Name Type Attributes Default Description selfTech An instance of the Tech class.
kindstring TextTrackkind (subtitles, captions, descriptions, chapters, or metadata)labelstring <optional> 
Label to identify the text track
languagestring <optional> 
Two letter language abbreviation
optionsObject <optional> 
{} An object with additional text track options
 - 
    
        
        
currentSrc() → {Tech~SourceObject}
 - 
    
    
Get the current source
 - 
    
        
        
emulateTextTracks()
 - 
    
    
Emulate texttracks
 - 
    
        
        
module:computed-style(el, prop)
 - 
    
    
A safe getComputedStyle with an IE8 fallback.
This is needed because in Firefox, if the player is loaded in an iframe with
display:none, thengetComputedStylereturnsnull, so, we do a null-check to make sure that the player doesn't break in these cases.Parameters:
Name Type Description elElement The element you want the computed style of
propstring The property name you want
 - 
    
        
        
module:merge-options(sources) → {Object}
 - 
    
    
Deep-merge one or more options objects, recursively merging only plain object properties.
Parameters:
Name Type Description sourcesArray.<Object> One or more objects to merge into a new object.
Returns:
Object -A new object that is the merged result of all sources.
 - 
    
        
        
tryUpdateStyle(el, style, rule)
 - 
    
    
Try to update the style of a DOM element. Some style changes will throw an error, particularly in IE8. Those should be noops.
Parameters:
Name Type Description elElement The DOM element to be styled.
stylestring The CSS property on the element that should be styled.
rulestring The style rule that should be applied to the property.
 
Type Definitions
- 
TextTrackCue
 - 
    
    
    
    
Properties:
Name Type Description idstring The unique id for this text track cue
startTimenumber The start time for this text track cue
endTimenumber The end time for this text track cue
pauseOnExitboolean Pause when the end time is reached if true.
- See: