---
title: "Display embedded video & audio in PDF using JavaScript | Nutrient"
canonical_url: "https://www.nutrient.io/guides/web/annotations/introduction-to-annotations/media-annotations/"
md_url: "https://www.nutrient.io/guides/web/annotations/introduction-to-annotations/media-annotations.md"
last_updated: "2026-06-19T09:21:00.329Z"
description: "Nutrient Web SDK allows viewing a video and listening to audio embedded in a PDF document by supporting media annotations."
---

# Display embedded audio and video files in PDFs using JavaScript

Nutrient Web SDK allows viewing a video and listening to audio embedded in a PDF document by supporting [media annotations](https://www.nutrient.io/api/web/classes/NutrientViewer.Annotations.MediaAnnotation.html). This annotation type can store and embed videos and audio directly into a PDF and is also supported by our [iOS](https://www.nutrient.io/guides/ios/annotations/video-annotations.md) and [Android](https://www.nutrient.io/guides/android/annotations/video-annotations.md) SDKs.

Currently, media annotations are read-only, meaning they cannot be created or edited. If you’re interested in this feature, contact us on [support](https://support.nutrient.io/hc/en-us/requests/new).

We do support deleting media annotations programmatically via our [delete annotations API](https://www.nutrient.io/guides/web/annotations/create-edit-and-remove/remove.md).

Download a sample file with an embedded video [here](https://cl.ly/3I3v1E1m2K1f) and try it with our [public demo](https://www.nutrient.io/demo/).![](@/assets/guides/web/annotations/media-annotation.png)

### Supported audio/video formats

Nutrient passes the extracted video or audio to the browser. The possibility of the video or audio being supported depends on your browser. Read more about our thoughts on video and audio format support in this [blog post](https://www.nutrient.io/blog/embedding-audio-in-pdf/).
---

## Related pages

- [Supported annotation types](/guides/web/annotations/introduction-to-annotations.md)
- [Geometry primitives](/guides/web/annotations/geometry.md)
- [Comparing XFDF and Instant JSON for annotations](/guides/web/annotations/introduction-to-annotations/data-formats.md)
- [Working with annotations](/guides/web/annotations/introduction-to-annotations/working-with-annotations.md)
- [What are PDF annotations?](/guides/web/annotations/introduction-to-annotations/what-are-annotations.md)

