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