"

Display Videos and Other Embedded Media

Pressbooks allows you to include a variety of embedded media in your book. You have likely encountered content like this all over the web: YouTube videos in blog posts, Tweets embedded in news articles, or timelines and simulations on an educational site. Many of the same kinds of media or interactive content can be included in your book, allowing your readers to watch videos, view interactive maps, engage with simulations, and more without ever leaving your book.

Display Uploaded Media in Your Book

You can upload some media files, like images and reasonably sized audio files, directly to your book’s media library. Media from your book’s media library can be embedded using the Add Media button located just above the visual editor. The following is a partial list of supported media file types:

Images Audio Files
  • jpg
  • jpeg
  • png
  • gif
  • svg
  • mp3
  • midi
  • MID
  • m4a
  • pdf
  • docx
  • pptx
  • xlsx
  • epub

Embed Content via oEmbed

You can automatically embed media from a variety of providers (like YouTube, Vimeo, TED, Flickr, Reddit, TikTok, Spotify, and more) which support the oEmbed specification. To embed content from a supported oembed provider:

  1. Copy the URL of the video, audio, or other media (i.e. https://www.youtube.com/watch?v=hrcrFJVgbbs).
  2. Paste the URL onto its own line into the Visual editor.
  3. Click Save.

The URL you pasted in step two, should be automatically replaced by the embedded content in the visual editor. After you save the chapter or post, the content will display in the webbook and can be seen by readers if the book is made public.

Embed iframes

If you want to embed content from a provider that is not on the above mentioned oEmbed list, this can often be achieved by using iframes.

Pressbooks restricts the embedding on iframes from most other sites for security reasons. Iframes from the following providers are allowed:

If you want to embed an iframe from a different provider, please contact Tia Roebuck (Tia.Roebuck@montgomerycollege.edu).

For more information about displaying embedded media, see this page of the Pressbooks User Guide.

License

Icon for the Creative Commons Attribution 4.0 International License

Quick Start: Using Pressbooks Copyright © by Pressbooks is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.