Constructor
new SimpleTextDisplayer(video)
This defines the default text displayer plugin. An instance of this class is used when no custom displayer is given.
This class simply converts shaka.text.Cue objects to TextTrackCues and feeds them to the browser.
Parameters:
| Name | Type | Description | 
|---|---|---|
video | 
            
            HTMLMediaElement | 
- Implements:
 - Source:
 
Members
- 
    
(private, static, constant) TextTrackLabel_ :string
 - 
    
    
        
Type:
- string
 
 - 
    
(private) textTrack_ :TextTrack
 - 
    
    
        
Type:
- TextTrack
 
- Source:
 
 - 
    
(private) textTrackCues_ :TextTrackCueList
 - 
    
    
        
Type:
- TextTrackCueList
 
- Source:
 
 
Methods
- 
    
        
            
            
append(cuesnon-null)
 - 
    
    Append given text cues to the list of cues to be displayed.
Parameters:
Name Type Description cuesArray.<!shaka.text.Cue> Text cues to be appended. - Implements:
 - Source:
 
 - 
    
        
            
            
(private) convertToTextTrackCue_(shakaCuenon-null) → {TextTrackCue}
 - 
    
    
    
    
    
        
Parameters:
Name Type Description shakaCueshakaExtern.Cue Returns:
- Type
 - TextTrackCue
 
 - 
    
        
            
            
destroy()
 - 
    
    
    
    
    
    
- Implements:
 - Source:
 
 - 
    
        
            
            
isTextVisible() → {boolean}
 - 
    
    Returns true if text is currently visible.
- Implements:
 - Source:
 
Returns:
- Type
 - boolean
 
 - 
    
        
            
            
remove(start, end) → {boolean}
 - 
    
    Remove cues in a given time range.
Parameters:
Name Type Description startnumber endnumber - Implements:
 - Source:
 
Returns:
- Type
 - boolean
 
 - 
    
        
            
            
(private) removeWhere_(predicate)
 - 
    
    Remove all cues for which the matching function returns true.
Parameters:
Name Type Description predicatefunction(!TextTrackCue): boolean  - 
    
        
            
            
setTextVisibility(on)
 - 
    
    Set text visibility.
Parameters:
Name Type Description onboolean - Implements:
 - Source: