The core of H5P takes care of storing contents’ state automatically if the resume feature is activated in the H5P integration settings. State is stored in regular intervals and based on some content type events and browser events. However, there may be a good reason why you don’t want to wait for H5P core to…
How can I implement support for resuming in an H5P content type?
Implementing H5P’s resume (or “save content state”) feature is pretty simple for developers. Whenever the core of H5P wants to store the current state of a content type instance, it will try to call a function named getCurrentState and expects the function to return anything serializable that you might want to store. When the user…
How does resuming an exercise work in H5P?
There are many small exercises that can be created with H5P. It’s not really necessary to be able to pause and resume them later. One can complete them in one go. However, there are some content types that allow to create exercises which can require quite some time to complete. I am thinking of Interactive…