Options
All
  • Public
  • Public/Protected
  • All
Menu

Waveform analyzer widget.

Example:

const audioElement = document.getElementById('audio');
const viewElement = document.getElementById('div-analyzer');

const w = new WaveformAnalyzer(audioElement, viewElement, { color: '#00ff00' });

// We can start only after user starts interact with our page.
// This is because of HTML Web Audio API restriction.
document.body.onclick = () => {
  audioElement.play();
  w.start();
}

See more options at interface definition: IAbstractAnalyzerOptions

Index

Generated using TypeDoc