Repository navigation
v1.1.2
@missing-elements/h5p-offline-player 1.1.2, with @missing-elements/h5p-embed 1.2.1 and @missing-elements/h5p-verify 1.3.1. The runtime, the libraries, cmi5 and normalize stay at 1.0.0. The VS Code extension's 0.1.1 is released separately, as h5p-preview-v0.1.1.
Vimeo videos play
The frame's policy let Vimeo's player API load, but refused the request that API makes before it creates the player: it reads the video's oEmbed record from vimeo.com/api/oembed.json. So every Vimeo video, in Interactive Video or a plain Video, waited eight seconds and ended in "loading error", in every mode and on every host.
The policy's connect-src now names that one endpoint, by path. Nothing else off the frame's origin is reachable from script.
Timeline loads its web media
Timeline fetches a slide's Wikipedia, Vimeo, SoundCloud and Flickr items as JSONP, that is, as scripts, and the policy refused them, so such a slide stayed empty. The four endpoints are now named by path, in both policies. Timeline's dead endpoints, Twitter, Storify, Vine and the YouTube feed, are not.
AR Scavenger is not supported
Found while checking the policy against every content type in the pack: AR Scavenger injects A-Frame and AR.js as inline scripts, which the frame's policy refuses, so it shows its title and no scene. It is not supported; Troubleshooting and the frame's CSP say why.
The element's API and the install paths have pages of their own
The README is shorter. The element's API holds the attributes, properties and events, and is the contract Compatibility holds a version to. Setting up the player has each install path in full.
@missing-elements/h5p-embed 1.2.1
Requires player 1.1.2, so a site written again, or a SCORM package written again, carries the fix. Nothing else changes.
@missing-elements/h5p-verify 1.3.1
Requires player 1.1.2, so npx runs the check and the preview with it. Nothing else changes.
Upgrading
The fix is in the Service Worker. The element and the Jobs worker change only in their version, so update them with it, and the versions match:
- On a CDN, change the player's URL to
@missing-elements/h5p-offline-player@1.1.2and copy itsdist/h5p-sw.jsonto your site again. The runtime's URL stays at 1.0.0. - With a bundler, update
@missing-elements/h5p-offline-player. The bundler emits the new workers. - With your own Service Worker that mounts the player (
mountH5P), build and deploy it again. - With copied folders, copy
dist/again. - An embed site: write it again with
npx @missing-elements/h5p-embed@latest <folder> --force, and deploy it. - A SCORM package: write it again with
npx @missing-elements/h5p-embed@latest --scorm course.h5pand replace the zip in the LMS. Learners keep their place: the package's build stamp covers the package and its libraries, not the player. - The VS Code extension: update to 0.1.1.
Full Changelog: v1.1.1...v1.1.2