new AudioTrackButton(player [, options])
Creates an instance of this class.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
player |
Player | The |
||
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>