/adapt-h5p

An iframe component that listens to H5P elements that have been setup to talk to Adapt

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

adapt-h5p

An Adapt component that acts as a listener to H5P content and messages Adapt when the completion criteria has been met. Uses Window.postMessage().

Documentation on how to use available here.

Attributes

_setCompletionOn: complete requires the learner to reach the end of the content. started requires the learner to only interact with the content to complete.

The rest of the attributes have been inherited from Learning Pool's responsive iframe.

Supported H5P content types

H5P content types are required to be modified to send messages to Adapt. Currently supported content types are:

Note as these are independent versions of each content type they may not have the most up to date features. If you wish for a content type to be update or if you wish for another to be converted to work with H5P please email simon.date@kcl.ac.uk.

Limitations

This component has only been tested with H5P hosted on Drupal. Further testing required to ensure it works with other CMS platforms.

Ensure that your CMS has cross origin resource sharing enabled or you will have to host your Adapt courses on the same domain.