Modules

Namespaces

UI

Events


audioPause

Event emitted when audio gets paused
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.on('audioPause', listener);
    });

audioPlay

Event emitted when audio begins playing
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.on('audioPlay', listener);
    });

audioViewerEventsAttached

Event emitted when an annotation observer is attached
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.on('audioViewerEventsAttached', listener);
    });

audioViewerLoaded

Event emitted when ffmpeg is loaded
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.on('audioViewerLoaded', listener);
    });

audioViewerReady

Event emitted when audio is loaded, decoded and the waveform drawn
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.on('audioViewerReady', listener);
    });