AudioTrackButton(player, optionsopt)

The base class for buttons that toggle specific AudioTrack types.

new AudioTrackButton(player, optionsopt)

Creates an instance of this class.

Parameters:
Name Type Attributes Default Description
player Player

The Player that this class should be attached to.

options Object <optional>
{}

The key/value store of player options.

Extends

Methods

buildCSSClass() → {string}

Builds the default DOM className.

Returns:
string -

The DOM className for this object.

createItems(itemsopt) → {Array.<AudioTrackMenuItem>}

Create a menu item for each audio track

Parameters:
Name Type Attributes Default Description
items Array.<AudioTrackMenuItem> <optional>
[]

An array of existing menu items to use.

Returns:
Array.<AudioTrackMenuItem> -

An array of menu items