15 Creating and Embedding Interactive Media

Embedding Media in Pressbooks

Pressbooks allow you to embed different types of media in your chapters, such as:

Embedding Plugin Content in Pressbooks

You can create and embed interactive content in Pressbooks using plugins like:

Creating H5P Interactive Content

H5P is a popular plugin used to create exciting, interactive content on the web. In Pressbooks, it’s most in-demand to create interactive quizzes and other activities in open texts and other OER.

You can view all of them, as well as examples and more detailed instructions for creating the different types on the H5P website (Note: they offer different installation and embedding options, but that is all taken care of by Pressbooks – you just need to think of the exciting things you can create!)

Before getting started, your first need to activate the H5P plugin on your book. This can be done under “Plugins” on the left menu.

Screenshot showing the activate h5P button under the plugins tab
Figure 7: H5P plugin.

Once the plugin is active, follow these steps to add an H5P element to your book:

  1. Navigate to the H5P Content menu and select “Add New.”
  2. Enter a title.
  3. Select content type from the dropdown menu.
  4. Install the content type by clicking on “Get” and following the steps indicated (if necessary).
  5. Enter the information for your quiz/activity etc.
  6. Click on “Create” when you’re done!

Now that you have created your element, you can add it to your chapter. To do so:

  1. Copy the shortcode displayed in the top right of the screen.
  2. Navigate to the chapter where you would like to add the element.
  3. Paste the shortcode into place (you can do this in the visual editor, no need to switch to text).
  4. Save your chapter.
  5. View the web version to see the element in action.
  6. Export other desired formats to see the fallback message.

The Pressbooks User Guide provides step-by-step screenshots as a visual example for creating simple H5P multiple-choice questions.

Prefer to Watch and Learn?

Check out this video tutorial [49:01mins]:

H5P Examples

Below are some examples of H5P activities that UniSQ authors have created in their open texts.

Enable Social Annotation with Hypothes.is

Pressbooks allows you to enable public or private annotation of your book using Hypothes.is, an open-source web annotation tool. Hypothes.is can be used to enable private (or public) communication between editors and proofreaders, personal note-taking and annotation, social learning and discussion about a text, or to foster deeper engagement between writers, readers, and your text.

To enable Hypothesis throughout your text:

  1. Click ‘Settings -> Hypothes.is
  2. Click ‘Allow on Parts‘, ‘Allow on Chapters‘, ‘Allow on Front Matter‘ and ‘Allow on Back Matter
  3. Click ‘Save Changes.’

Once Hypothes.is is enabled on your webbook (see below), any reader coming to the book will see the Hypothesis toolbar on the right, either open or minimised depending on your settings.

With this toolbar open, the reader will see any public annotations and can create or log into their Hypothes.is account. Once logged in, they can select any section of text and a small icon will pop up that lets them either highlight the passage (which will remain private) or add an annotation. Annotations can be edited, deleted, replied to or shared using the icons at the bottom of the annotation section.

Screenshot of annotation appearing on the side of a Presbooks page
Figure 8: Screenshot of the Hypothes.is toolbar on the page

These annotations can also be public, private to a reader or in a private group, and the user can toggle between these options at the very top of the toolbar (the default is “Public”). You can read more about creating groups and annotating in groups on the Hypothesis website.

Note: If you have your book set to “Private”, you do not need to create a group to keep your annotations and replies hidden from public view. The Pressbooks privacy setting means that no one can access the book, and as such, they can’t see any of the Hypothes.is activity on it by default.

Prefer to Watch and Learn?

Check out this video tutorial [49:01 mins]:

Chapter Attribution

This chapter has been adapted in parts from:


Icon for the Creative Commons Attribution-NonCommercial 4.0 International License

Open Publishing Guide for Authors Copyright © 2023 by University of Southern Queensland is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, except where otherwise noted.

Share This Book