new OffTextTrackMenuItem(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(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.Listens to Events:
- event:tap
- event:click
- Inherited From:
-
handleTracksChange(event)
-
Handle text track change
Parameters:
Name Type Description event
EventTarget~Event The event that caused this function to run
- Overrides: