Class: AudioTrackButton

AudioTrackButton

The base class for buttons that toggle specific AudioTrack types.


new AudioTrackButton(player [, options])

Creates an instance of this class.

Parameters:
Name Type Argument Default Description
player Player

The Player that this class should be attached to.

options Object <optional>
{}

The key/value store of player options.

Source:
control-bar/audio-track-controls/audio-track-button.js

Extends

Methods


buildCSSClass()

Builds the default DOM className.

Source:
control-bar/audio-track-controls/audio-track-button.js
Returns:

The DOM className for this object.

Type
string

createItems( [items])

Create a menu item for each audio track

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

An array of existing menu items to use.

Source:
control-bar/audio-track-controls/audio-track-button.js
Returns:

An array of menu items

Type
Array.<AudioTrackMenuItem>