the storage for content (can be read only)
the configuration object
Optional
integrationObjectDefaults: IIntegration(optional) the default values to use for the integration object
creates url strings for files, can be used to customize the paths in an implementation application
a function that is called to retrieve translations of keys in a certain language; the keys use the i18next format (e.g. namespace:key). See the ITranslationFunction documentation for more details.
Optional
options: IH5PPlayerOptionsmore options to customize the behavior of the player; see IH5PPlayerOptions documentation for more details
Optional
contentUserDataStorage: IContentUserDataStorageCreates a frame for displaying H5P content. You can customize this frame by calling setRenderer(...). It normally is enough to call this method with the content id. Only call it with parameters and metadata if don't want to use the IContentStorage object passed into the constructor.
the content id
the user who wants to access the content
Optional
options: {Optional
asUserId?: string(optional) allows you to impersonate another user. You will see their user state instead of yours.
Optional
contextId?: string(optional) allows implementations to have multiple content states for a single content object and user tuple
Optional
ignoreUserPermissions?: booleanOptional
metadataOverride?: ContentMetadata(optional) the metadata of a piece of content (=h5p.json); if you use this option, the parameters won't be loaded from storage
Optional
parametersOverride?: any(optional) the parameters of a piece of content (=content.json); if you use this option, the parameters won't be loaded from storage
Optional
readOnlyState?: boolean(optional) allows you to disable saving of
the user state. You will still see the state, but changes won't be
persisted. This is useful if you want to review other users' states by
setting asUserId
and don't want to change their state. Note that the
H5P doesn't support this behavior and we use a workaround to implement
it. The workaround includes setting the query parameter ignorePost=yes
in the URL of the content state Ajax call. The h5p-express adapter
ignores posts that have this query parameter. You should, however, still
prevent malicious users from writing other users' states in the
permission system!
Optional
showCopyButton?: booleanOptional
showDownloadButton?: booleanOptional
showEmbedButton?: booleanOptional
showFrame?: booleanOptional
showH5PIcon?: booleanOptional
showLicenseButton?: booleana HTML string that you can insert into your page
the storage for libraries (can be read only)