new CaptionsButton(player [, options] [, ready])
Creates an instance of this class.
Parameters:
Name | Type | Argument | 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. |
- Source:
- control-bar/text-track-controls/captions-button.js
Extends
Methods
-
buildCSSClass()
-
Builds the default DOM
className
.- Source:
- control-bar/text-track-controls/captions-button.js
Returns:
The DOM
className
for this object.- Type
- string
-
createItems()
-
Create caption menu items
- Overrides:
- Source:
- control-bar/text-track-controls/captions-button.js
Returns:
The array of current menu items.
- Type
- Array.<CaptionSettingsMenuItem>