The internal H5P instance object of the H5P content.
Only available after the initialized
event was fired. Important: This
object is only partially typed and there are more properties and methods
on it!
The global H5P object / namespace (normally accessible through "H5P..." or "window.H5P") of the content type. Depending on the embed type this can be an object from the internal iframe, so you can use it to break the barrier of the iframe and execute JavaScript inside the iframe.
Only available after the initialized
event was fired. Important: This
object is only partially typed and there are more properties and methods
on it!
The window object in which the H5P object exists and is rendered in. This is the iframe's contentWindow or the parent's window, depending on the embed type.
Called when the component needs to load data about content. The endpoint called in here should call H5PPlayer.render() and send back the player model.
Should throw an error with a message in the message property if something goes wrong.
Static
observedIndicates changes to which attributes should trigger calls to attributeChangedCallback.
Called when one of the attributes in observedAttributes changes.
Called when the component is added to the DOM.
Called when the component is removed from the DOM.
Returns the copyright notice in HTML that you can insert somewhere to display it. Undefined if there is no copyright information.
true if there is copyright information to be displayed.
Asks the H5P content to resize itself inside the dimensions of the container.
Has no effect until the H5P object has fully initialized.
Displays the copyright notice in the regular H5P way.
A Web Component displaying H5P content.