H5P Guides
The .h5p Specification
The specification for the H5P file format consists of 5 important components.
- The package itself, a standard zip file with a specific extension of .h5p to help distinguish it from other zip files.
- A specific file tree structure inside the package, which is elaborately explained on the File Structure page.
- A package definition file, describing the contents of the package. Have a look at the Package Definition page for details.
- One optional content structure, which includes media files and a content.json file. The content file will describe the parameters required to start the interactive content, as specified in the package definition file. The structure of this file will be according to the semantics defined by the content type's library.
- Lastly, there will be a variety of code libraries that are required for the content to run. Each of these libraries must specify their name, dependencies and other meta-data in the Library Definition file. And if the library is specified as a runnable content type, it must also include a Semantics Definition file which describes the structure of the content.
As stated above, the content structure is optional, so in essence an .h5p file could be used only to transfer libraries between different websites.
Comments
Ruth Ebo
Tue, 04/30/2024 - 14:49
Permalink
How to add leaderboard and sounds to the games
I would like to know how we can add sounds and leaderboard to the game and see who used the interactive book
BV52
Wed, 05/01/2024 - 18:43
Permalink
Hi Ruth,You can already add
Hi Ruth,
You can already add sounds by using the "Audio" in Interactive Book. Regarding having a leaderboard this is more of an LMS/CMS feature rather than H5P. Contents emits data in the form of xAPI statements and you will need a plugin or custom code to listen to these statements and a data store such as a learning record store to save them in.
I highly recommend looking through these documentation:
https://h5p.org/documentation/x-api
https://h5p.org/documentation/for-authors/analyzing-results-and-answers
This data may in turn be used by the LMS to have some sort of leaderboard.
-BV
Ruth Ebo
Wed, 05/01/2024 - 22:11
Permalink
Thanks BV, what I mean by
Thanks BV, what I mean by audio is audio for games like sound for the right answer and wrong answer
BV52
Thu, 05/02/2024 - 18:29
Permalink
Hi Ruth,Only Single Choice
Hi Ruth,
Only Single Choice Set have this feature. Feel free to post a feature request. In order for your feature request to attract as much interest as possible make sure it follows the below guidelines:
It is clear from every perspective how the feature will work. We recommend describing the feature with one or more user stories, for instance “As an author, I want it to be possible to pick between different effects for the check answer animation so that the learner will see a variety of effects and also I can adapt the effects to my target audience(I’ll be using pink unicorns which works really well for both my target audience which are 4 year old girls and venture capitalists)”
If the feature can be illustrated with images or videos it always helps
Make it clear what content types this is relevant for, and or if this is a new content type
Make sure you post the feature in the Feature Request forum.
-BV