new CaptionSettingsMenuItem(player [, options])
Creates an instance of this class.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
player |
Player | The |
|
options |
Object |
<optional> |
The key/value store of player options. |
- Source:
- control-bar/text-track-controls/caption-settings-menu-item.js
Extends
Methods
-
handleClick( [event])
-
This gets called when an
CaptionSettingsMenuItem
is "clicked". See ClickableComponent for more detailed information on what a click can be.Parameters:
Name Type Argument Description event
EventTarget~Event <optional>
The
keydown
,tap
, orclick
event that caused this function to be called.- Overrides:
- Source:
- control-bar/text-track-controls/caption-settings-menu-item.js
Listens to Events:
- event:tap
- event:click
-
handleTracksChange(event)
-
Handle text track list change
Parameters:
Name Type Description event
EventTarget~Event The
change
event that caused this function to be called.- Inherited From:
- Source:
- control-bar/text-track-controls/text-track-menu-item.js
Listens to Events: