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