Open Videos using JavaScript
HTML5 Videos can be loaded into WebViewer with use of the @pdftron/webviewer-video package.
Install
Below is a sample setup of the video package with webviewer.
initializeVideoViewer is called to give WebViewer the ability to handle the loading of video files. Afterwards, a video can be loaded with loadVideo. Lastly settings to customize the behavior of the controls can be passed in when calling initializeVideoViewer.
Last updated
Was this helpful?