AudioTrackMenuItem

An AudioTrack MenuItem

This is a temporary workaround.

Constructor

new AudioTrackMenuItem(player, optionsopt)

Creates an instance of this class.

Parameters:
NameTypeAttributesDescription
playerPlayer

The Player that this class should be attached to.

optionsObject<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:
NameTypeAttributesDescription
eventEvent<optional>

The keydown, tap, or click event that caused this function to be called.

Listens to Events:
  • event:tap
  • event:click

handleTracksChange(eventopt)

Handle any AudioTrack change.

Parameters:
NameTypeAttributesDescription
eventEvent<optional>

The AudioTrackList#change event that caused this to run.

Listens to Events:
  • AudioTrackList#event:change