Display Embedded Audio and Video Files in PDFs Using JavaScript
PSPDFKit for Web allows viewing a video and listening to audio embedded in a PDF document by supporting media annotations. This annotation type can store and embed videos and audio directly into a PDF and is also supported by our iOS and Android SDKs.
Currently, media annotations are read-only, meaning they cannot be created or edited. If you’re interested in this feature, please contact us on support.
We do support deleting media annotations programmatically via our delete annotations API.
You can download a sample file with an embedded video here and try it with our public demo.
Supported Audio/Video Formats
PSPDFKit passes the extracted video or audio to the browser. The possibility of the video or audio being supported depends on your browser. You can read more about our thoughts on video and audio format support in this blog post.