the storage for content (can be read only)
the configuration object
OptionalintegrationObjectDefaults: 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.
Optionaloptions: IH5PPlayerOptionsmore options to customize the behavior of the player; see IH5PPlayerOptions documentation for more details
OptionalcontentUserDataStorage: 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
Optionaloptions: {OptionalasUserId?: string(optional) allows you to impersonate another user. You will see their user state instead of yours.
OptionalcontextId?: string(optional) allows implementations to have multiple content states for a single content object and user tuple
OptionalignoreUserPermissions?: boolean(optional) If set to true, the user object won't be passed to the storage classes for permission checks. You can use this option if you have already checked the user's permission in a different layer.
OptionalmetadataOverride?: ContentMetadata(optional) the metadata of a piece of content (=h5p.json); if you use this option, the parameters won't be loaded from storage
OptionalparametersOverride?: any(optional) the parameters of a piece of content (=content.json); if you use this option, the parameters won't be loaded from storage
OptionalreadOnlyState?: 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!
OptionalshowCopyButton?: booleanOptionalshowDownloadButton?: booleanOptionalshowEmbedButton?: booleanOptionalshowFrame?: booleanOptionalshowH5PIcon?: booleanOptionalshowLicenseButton?: booleana HTML string that you can insert into your page
the storage for libraries (can be read only)