How to Author Content in H5P and Publish in Open edX?
Overview
H5P (HTML5 Package) is an open-source framework for creating, sharing, and reusing rich, interactive e-learning content. With H5P, course authors can build mobile-responsive activities—such as Interactive Videos, Branching Scenarios, memory games, and timelines—and embed them directly into an Open edX course using a dedicated H5P XBlock. Prerequisites: The H5P XBlock must be installed on your Open edX platform by a site administrator before following the steps below. If you are unsure whether it is installed, contact your platform admin.
Tip: Ensure you are logged into Open edX Studio before proceeding.
Step 1: Author and Download Content on H5P
Before adding H5P content in Studio, create and download your interactive content package from H5P.
- Sign in to your H5P authoring account at h5p.org, or open your organization's H5P-integrated workspace (such as a Moodle, Canvas, or WordPress environment).
- Click Create Interactive Content.
- Select your target content type (e.g., Interactive Video, Course Presentation, or Dialog Cards) and build out your multimedia elements and question parameters.
- Once completed, scroll to the bottom of your action frame and click the Download or Reuse link.
- Save the generated
.h5ppackage file directly onto your local machine.
Step 2: Register the H5P XBlock in Advanced Settings
To allow your course to recognize and render H5P content, you need to add the H5P XBlock to the course's Advanced Module List in Studio's Advanced Settings.
- Open your target course run in Studio.
- From the Settings menu in the top navigation bar, select Advanced Settings.
- Locate the Advanced Module List field near the top of the configurations table.
- Inside the square brackets
[ ], enter the H5P plugin key precisely as:"h5pxblock"- Note: If other advanced block keys are already registered, separate them using a comma (e.g.,
["lti_consumer", "h5pxblock"]). Ensure you use standard straight double quotation marks.
- Note: If other advanced block keys are already registered, separate them using a comma (e.g.,
- Click Save Changes at the bottom of the page.
Step 3: Embed the H5P Component into a Unit
With the feature registered at the course level, you can drop the activity canvas onto any target learning page.
- Navigate to your Course Outline page and enter the specific Unit where the interactive module should live.
- Scroll to the Add New Component dashboard panel at the bottom of the workspace.
- Click the Advanced tile.
- Select H5P XBlock from the expanded options menu. The block container will load immediately onto your page canvas.
Step 4: Upload the .h5p Package File
The final step is to feed your authored multimedia package file into the Studio component player.
- Find your newly added H5P component block on the unit layout and click Edit.
- In the configuration modal, look for the file upload or file chooser field.
- Click the upload button, locate the
.h5pfile you downloaded in Step 1 from your machine, and click Open. - Supply a clear learner-facing Display Name matching the activity topic (e.g., Interactive Module: Chemistry Lab Simulation).
- Click Save.
- Click the Publish button in the right-hand unit status sidebar to push the dynamic module live.
Learner Experience in the LMS
When a learner opens this unit in the LMS, the H5P content loads automatically as a responsive, interactive element. If your H5P activity includes graded questions, the learner's score is reported to the Open edX gradebook in real time using xAPI (Tin Can) or the platform's built-in progress tracking, depending on your site configuration. Note: For scored H5P activities to report grades correctly, your platform administrator must confirm that xAPI or a compatible reporting extension is enabled.