new OffTextTrackMenuItem(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/off-text-track-menu-item.js
Extends
Methods
-
handleClick(event)
-
This gets called when an
TextTrackMenuItem
is "clicked". See ClickableComponent for more detailed information on what a click can be.Parameters:
Name Type Description event
EventTarget~Event The
keydown
,tap
, orclick
event that caused this function to be called.- Inherited From:
- Source:
- control-bar/text-track-controls/text-track-menu-item.js
Listens to Events:
- event:tap
- event:click
-
handleTracksChange(event)
-
Handle text track change
Parameters:
Name Type Description event
EventTarget~Event The event that caused this function to run
- Overrides:
- Source:
- control-bar/text-track-controls/off-text-track-menu-item.js