Modules

Classes

Video

Namespaces

UI

Events


videoElementLoaded

Event emitted when video element gets initialized
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.addEventListener('videoElementLoaded', listener);
    });

videoPause

Event emitted when video gets paused
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.addEventListener('videoPause', listener);
    });

videoPlay

Event emitted when video begins playing
Example
WebViewer(...)
    .then(function(instance) {
      const { docViewer } = instance;
      docViewer.addEventListener('videoPlay', listener);
    });