Class: AudioPlayerComponent

AudioPlayerComponent(dataObjectopt, optionsopt)

AudioPlayerComponent shows an AudioComponent along with play/pause controls.

Constructor

new AudioPlayerComponent(dataObjectopt, optionsopt)

Parameters:
Name Type Attributes Default Description
dataObject DataObject <optional>
null
options Object <optional>
null
Properties
Name Type Attributes Default Description
audio string <optional>
null a URL to an audio file
audioDOM HTMLElement <optional>
null an HTML `audio` element to use as a source
Source:
To Do:
  • Add an optional progress/shuttle component
  • Make this reactive to a DataModel
Example
new AudioPlayerComponent(undefined, { audio: '/static/audio.wav' })