CaptionsButton(player, optionsopt, readyopt)

The button component for toggling and selecting captions

new CaptionsButton(player, optionsopt, readyopt)

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.

ready Component~ReadyCallback <optional>

The function to call when this component is ready.

Extends

Methods

buildCSSClass() → {string}

Builds the default DOM className.

Returns:
string -

The DOM className for this object.

createItems() → {Array.<CaptionSettingsMenuItem>}

Create caption menu items

Returns:
Array.<CaptionSettingsMenuItem> -

The array of current menu items.

Overrides: