Before you begin, make sure your development environment includes Node.js and npm.
Here is an example of how WebViewer and WebViewer-audio could be integrated into your application.
Also see the React sample, for a complete solution, with further customizations.
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-audio/dist/main.js
and add it to your project's html page.
This will add the object WebViewerAudio
to the window. This object contains initializeAudioViewer
. So the previous code can be changed to:
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales