H5PPlayerComponent
in the webcomponent package) (or the corresponding functionality in the React package).h5p-express
package that implement this functionality. You have to implement these endpoints yourself.IContentUserDataStorage
. The recommended storage class for production is MongoContentUserDataStorage
in the @lumieducation/h5p-mongos3
package. There's also a FileContentUserDataStorageClass
in the @lumieducation/h5p-server
package that you can use for development or testing purposes.H5PEditor
and H5PPlayer
constructor.setFinishedEnabled
in IH5PConfig
to true
.h5pAjaxExpressRouter
from the @lumieducation/h5p-express
package, then the routes for the AJAX endpoint are automatically created. You can manually turn them on by setting routeFinishedData
in the options when creating the route.h5pAjaxExpressRouter
, you have to route everything manually. First get ContentUserDataManager
from H5PEditor
or H5PPlayer
. Route this endpoint and return HTTP status code 200 with a JSON object that is based on AjaxSuccessResponse
with empty payload:ContentUserDataManager.setFinished
setFinishedUrl
in IH5PConfig
.setFinishedEnabled
in IH5PConfig.