Constructor
new CaptionsButton(player, optionsopt, readyopt)
Creates an instance of this class.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
player | 
            
            Player | The   | 
        |
options | 
            
            Object | 
                
                    <optional> | 
            
            
            The key/value store of player options.  | 
        
ready | 
            
            Component~ReadyCallback | 
                
                    <optional> | 
            
            
            The function to call when this component is ready.  | 
        
Extends
Methods
- 
    
        
        
buildCSSClass() → {string}
 - 
    
    
Builds the default DOM
className.Returns:
string -The DOM
classNamefor this object. - 
    
        
        
createItems() → {Array.<CaptionSettingsMenuItem>}
 - 
    
    
Create caption menu items
- Overrides:
 
 - 
    
        
        
update(eventopt)
 - 
    
    
Update caption menu items
Parameters:
Name Type Attributes Description eventEventTarget~Event <optional> 
The
addtrackorremovetrackevent that caused this function to be called.Listens to Events: