Options
All
  • Public
  • Public/Protected
  • All
Menu

Audio time pointer widget.

Widget to auto draw an audio time pointer control.

The time pointer for audioElement will be auto drawn and appended inside the viewElement as child element.

Example:


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

// Line time pointer:
const audioTimePointer1 = new AudioTimePointer(audioElement, viewElement);
// or
// Bar time pointer:
const audioTimePointer2 = new AudioTimePointer(audioElement, viewElement, { mode: 'bar', pointerStyle: { background: '#0f0a' });

See more options at interface definition: IAudioTimePointerOptions

Index

Generated using TypeDoc