This is a work-in-progress: to capture xAPI statements from H5P interactives and forward to an LRS. The code will be implemented to work with H5P Standalone Player by Tunapanda.
Below are steps to setup H5P Standalone Player (by Tunapanda) on your local computer. This setup will display H5P interactives from a web server. It's not designed to be launched from an LMS.
- Go to the H5P Standalone releases page.
- Download h5p-standalone-3.5.0.zip from the Assets section (at the bottom of the page).
- Extract the contents of the zip file. The file should unzip to a folder named
h5p-standalone-3.5.0
.
- Go to h5p-standalone/test, and download these two sample HTML files to your
h5p-standalone-3.5.0
folder. (Be sure to download the Raw files.)single.html
multiple.html
- Within the
h5p-standalone-3.5.0
folder, create a folder namedcontent.
- Extract a couple of H5P files to the
content
folder.- Change
.h5p
to.zip
. - Unzip the
.zip
file to a folder. - Copy the folder to
content
.
- Change
- Open
single.html
and seth5pJsonPath
to the path of the H5P content:/content/h5p-folder-name
. For example/content/sort-paragraphs
. - Open
multiple.html
and do the same.
Run the player on a web server. For example, to use Python as a web server:
- Open Terminal and navigate to the
h5p-standalone-3.5.0
folder. - Start the web server:
python3 -m http.server
- Open the HTML pages in your browser:
- To display the page with one interactive: http://127.0.0.1:8000/single.html
- To display the page with two interactives: http://127.0.0.1:8000/multiple.html