WebViewer is a powerful JavaScript-based Library that's part of the PDFTron SDK. It allows you to view and annotate various file formats (PDF, MS Office, images, videos) on your web app with a fully customizable UI.
This sample uses the video addon for WebViewer. It allows the loading of HTML5 videos (.mp4, ogg, webm) so that their frames can be annotated. For more information, see this guide.
Watch a video that highlights new features included in 3.0 release.
Let me know how you are planning to use WebViewer Video or if you have any feedback on any feature missing. You can email me directly.
This repo is specifically designed for any users interested in integrating WebViewer into React project. This project was generated with Create React App. See Create React App documentation for more information.
You can explore all of the functionality in our showcase.
Before you begin, make sure your development environment includes Node.js and npm.
git clone https://github.com/PDFTron/webviewer-video-sample.git
cd webviewer-video-sample
npm install
npm start
Run npm run build
to build the project. The build artifacts will be stored in the build/
directory. See the section about deployment for more information.
To test the build directory locally you can use serve or http-server. In case of serve, by default it strips the .html extension stripped from paths. We added serve.json configuration to disable cleanUrls option.
See @pdftron/webviewer API documentation.
WebViewer Video will run in trial mode until a license is provided. For more information on licensing, please visit our website