CaptionSettingsMenuItem(player, optionsopt)

The menu item for caption track settings menu

new CaptionSettingsMenuItem(player, optionsopt)

Creates an instance of this class.

Parameters:
Name Type Attributes Description
player Player

The Player that this class should be attached to.

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, or click 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: