h5p-offline-player

The whole integration

Import the element, set src, done.

The Service Worker registers itself, and setting src loads the way it does on <video>. Nothing is unpacked on a server: the archive is read in place and its files are served to the H5P runtime from inside the browser.

Markup

<script type="module" src="h5p-player.js"></script>
<h5p-player src="/demo/content/how-it-works.h5p" auto-resize></h5p-player>

More ways to embed it