@pdftron/webviewer-video
Advanced tools
Comparing version 1.0.26 to 1.0.27
{ | ||
"name": "@pdftron/webviewer-video", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "This is an addon for WebViewer that allows loading HTML5 videos (.mp4, ogg, webm) so that their video frames can be annotated.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -62,3 +62,3 @@ # WebViewer Video | ||
If your environment can not import WebViewer Video from the module, you can instead include video as a script tag. Simply, take the file `node_modules/@pdftron/webviewer-video/dist/main.js` and add to you html page. | ||
If your environment can not import WebViewer Video from the module, you can instead include WebViewer Video as a script tag. Simply, take the file `node_modules/@pdftron/webviewer-video/dist/main.js` and add it to your project's html page. | ||
@@ -68,2 +68,3 @@ ```html | ||
... | ||
<!-- main.js can be renamed --> | ||
<script src="./main.js"></script> | ||
@@ -73,5 +74,6 @@ </head> | ||
This will add the object `WebViewerVideo` to the window. This object contains `initializeVideoViewer`. So the above code can be changed to: | ||
This will add the object `WebViewerVideo` to the window. This object contains `initializeVideoViewer`. So the previous code can be changed to: | ||
```javascript | ||
... | ||
const { | ||
@@ -86,3 +88,2 @@ loadVideo, | ||
## Documentation | ||
@@ -89,0 +90,0 @@ |
66690
92