Constructor
new AudioTrackMenuItem(player, optionsopt)
Creates an instance of this class.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
player | Player | The | |
options | Object | <optional> | The key/value store of player options. |
Extends
- MenuItem
Methods
handleClick(eventopt)
This gets called when an `AudioTrackMenuItem is "clicked". See ClickableComponent for more detailed information on what a click can be.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
event | Event | <optional> | The |
Listens to Events:
- event:tap
- event:click
handleTracksChange(eventopt)
Handle any AudioTrack change.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
event | Event | <optional> | The AudioTrackList#change event that caused this to run. |
Listens to Events:
- AudioTrackList#event:change
pillarbox-web