You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im having an issue where the content of H5P is not showing on the moodle app.
Works fine in mobile browsers.
Im getting either a login promt in an embedded frame (not working even if signed) or a H5P picure with the text You do not have access to the content. Try to login.
Im using moodle core 4.1.1+
The text was updated successfully, but these errors were encountered:
I would like to note that we encounter the same issue on a customer's Moodle 4.1.6 instance with mod_hvp in version 2023052600 and the latest iOS App for Moodle.
The Moodle instance has forcelogin = 1 and allowframembedding = 1 set if this information is of any help.
I did some initial investigation and saw that mod_hvp uses a custom embedding mechanism for showing content in the app - see https://github.com/h5p/moodle-mod_hvp/blob/stable/templates/mobile_view_page.mustache.
But apparently, this custom embedding mechanism fails for us on https://github.com/h5p/moodle-mod_hvp/blob/stable/embed.php#L53 where the code ends up in the catch branch with the result that the app is not allowed to download the H5P content.
If I disable debugging in the Mobile App, it shows the login screen instead of the H5P content.
And if I enable debugging in the Mobile App, I see the embedloginfailed error string in the app.
I would assume that this is a misconfiguration in our setup, but it could also be a bug in mod_hvp.
The customer is currently recommending his users to use H5P content in the browser, but I would appreciate any advice how to get H5P working in the Mobile App properly.
This isn't a misconfiguration in your setup, this is a bug in mod_hvp.
This is the original issue: #424
This is the corresponding PR that fixes it: #425
The PR itself works, I have patched the H5P plugin at Hochschule Hannover and tested it. You might however need to change your server configuration, depending on your CSPs. The 'frame-ancestors' directive needs to be changed, as the app is not the same origin as your configured Moodle host.
Im having an issue where the content of H5P is not showing on the moodle app.
Works fine in mobile browsers.
Im getting either a login promt in an embedded frame (not working even if signed) or a H5P picure with the text You do not have access to the content. Try to login.
Im using moodle core 4.1.1+
The text was updated successfully, but these errors were encountered: