The Ajax endpoint called when the user state has changed Example: /h5p-ajax/content-user-data/:contentId/:dataType/:subContentId?token=XYZ You can use these placeholders: :contentId (can be null for editor) :dataType (values: state or any string) :subContentId (seems to obsolete, always 0) The H5P client will replace them with the actual values.
An Ajax endpoint called when the user has finished the content. Example: /h5p-ajax/set-finished.json?token=XYZ Only called when postUserStatistics is set to true.
Optional
baseThe base URL, e.g. https://example.org
Optional
contentsThe key must be of the form "cid-XXX", where XXX is the id of the content
Optional
coreThe files in this list are references when creating iframes.
Optional
scripts?: string[]A list of JavaScript files that make up the H5P core
Optional
styles?: string[]A list of CSS styles that make up the H5P core.
Optional
crossoriginCan be null.
Optional
crossoriginCan be null.
Optional
editorWe pass certain configuration values to the client with the editor integration object. Note that the way to pass these values to the client is NOT standardized and in the PHP implementation it is not the same in the Drupal, Moodle and WordPress clients. For our NodeJS version we've decided to put the values into the integration object. The page created by the editor renderer has to extract these values and put them into the corresponding properties of the H5PEditor object! See /src/renderers/default.ts how this can be done!
Optional
fullscreenOptional
HubThe localization strings. The namespace can for example be 'H5P'.
Optional
libraryCan be null. The server can customize library behavior by setting the library config for certain machine names, as the H5P client allows it to be called by executing H5P.getLibraryConfig(machineName). This means that libraries can retrieve configuration values from the server that way.
Optional
libraryThe URL at which the core JavaScript files are stored.
Optional
pluginThe cache buster appended to JavaScript and CSS files. Example: ?q8idru
If set the URL specified in ajax.setFinished is called when the user is finished with a content object.
Optional
reportingOptional
siteUsed when generating xAPI statements.
The URL at which files can be accessed. Combined with the baseUrl by the client. Example. /h5p
Optional
urlUsed to override the auto-generated library URL (libraries means "content types" here). If this is unset, the H5P client will assume '/libraries'. Note that the URL is NOT appended to the url or baseUrl property!
Optional
canToggleViewOthersH5PContents?: 0 | 1Usage unknown.
Optional
id?: any
The integration object is used to pass information to the H5P JavaScript client running in the browser about certain settings and values of the server.