## General help

### H5P is unreliable and disappointing

H5P is unreliable and disappointing

Moodle 3.4

Just something people should know before developing a lesson with H5P.

H5P may work find with one browser, on one OS, at one time, but not work at all on another browser, on another OS, at another time. At least, that has been my experience, and the experience of others - from what I have been reading.

I put together an H5P dialog card lesson on bird identification. You can - maybe - see it here.

Just go down to the bottom, and click on the "Bird Identification" link.

With Linux, and Firefox, some images are occassionally missing. They are arbitrarily deleted and have to be reloaded.

With MacOS, and Chrome, none of the images show up at all, unless you are logged in. This is not the way I have it setup, and not the way it works on other systems.

With MacOS, and Safari, the images also do not show up, I get this error, from Moodle:

-------------------

error/moodle/filenotfound

In the case of a change of server, check if you have copied the content of moodledata, especially uploaded files.

Also make sure the file name contains no special characters like '#'

You may also get this error if you have moved files after linking to them from the course page.

--------------------

H5P puts a hyphen in the image names, no other special characters.

When I looked at H5P demos, I was impressed. After trying to use it, I am disappointed. I cannot rely on H5P to actually work.

Also, I don't think you can use repositories to load images into H5P lessons, you have to upload from your system.

I am not looking for technical assistance, I am just letting people know.

Average of ratings: -
Svar: H5P is unreliable and disappointing

Hi Walter,

Thank you for sharing your experience with the H5P plugin.
I must tell you I've done some contributions and work on the H5P plugin, and this is not how it's intended to work/not work. I would very much like to help you resolve your issue, and if possible help others that may be struggling with the same problems.

To me, it sounds like the Guest role doesn't have access to the files associated with the content, and unfortunately, the plugin has not been setting this capability for the Guest role by default even though it should have. This should be fixed with the next release of the plugin.
In the mean time, could you check that the Guest role on your site has been allowed the 'mod/hvp:getcontent' permission
Hopefully, allowing this should fix all the cross-browser problems that you're seeing.

Regarding the reuse of images instead of having to upload them, this is a highly requested feature and I'm quite confident we'll be seeing a better solution here not to far into the future.

Average of ratings: Useful (3)
Re: Svar: H5P is unreliable and disappointing

Hi Frode,

It also looks like mod/hvp:getcachedassets is required too: https://github.com/h5p/h5p-moodle-plugin/issues/145#issuecomment-294752225 , while https://github.com/h5p/h5p-moodle-plugin/issues/129#issuecomment-271236137 says it should be the only permission required.

Lurking at the code, https://github.com/h5p/h5p-moodle-plugin/blob/e120ebe7096dc55d8be17251e662200fb7d94426/lib.php#L274, mod/hvp:view is more appropriate than mod/hvp:getcontent when I looked at what Walter have described in https://moodle.org/mod/forum/discuss.php?d=361646.

TIA,
Matteo

Average of ratings: -
Re: Svar: H5P is unreliable and disappointing

Thank you for the feedback.

We've just changed the permissions ( 6 days ago) required to see view from mod/hvp:getcontent to mod/hvp:view, like you've noticed. This is not released yet and has been added to be more consistent with other plugins like quiz and as a response to the feedback we've gotten on the permissions.

Default permissions for all roles has also been reworked for this reason: https://github.com/h5p/h5p-moodle-plugin/blob/master/db/access.php.

While waiting for the release Walter's image issue should be resolved by giving the mod/hvp:getcontentand mod/hvp:getcachedassets to guests for the site, since they don't seem to be able to retrieve assets for the content.

Average of ratings: Useful (2)
Re: Svar: H5P is unreliable and disappointing

> Walter's image issue should be resolved by giving the mod/hvp:getcontentand mod/hvp:getcachedassets to guests for the site, since they don't seem to be able to retrieve assets for the content.

I am not finding either of those.  I have gone to site administration > plugins > H5P settings, and site administration > plugins > H5P library.

Do I need to download these from github? If so, is there any trick to installing them?

I have no immediate need for H5P. I may just wait awhile and see if this issues get fixed.

Average of ratings: -
Re: Svar: H5P is unreliable and disappointing

No, it is a user permission, so you need to go Site Admin - Users - Permissions - Define Roles - and then select the guest role. There is a Search box where you can type in the permission and it will show if it is enabled or not for the guest role.

Even if you have no immediate need for the H5P plug in, these steps are very useful to follow (as a Moodle administrator) to troubleshoot other issues that may arise down the road with various other plugin or site role configurations.

Average of ratings: Useful (1)
Re: Svar: H5P is unreliable and disappointing

I checked the guest permission.

I regards to H5P, I found this:

> Activity: H5P
> Get cached H5P content assets    Allow
> mod/hvp:getcachedassets

I seems the guests do have permissions, but it does not work.

Average of ratings: -
Svar: Re: Svar: H5P is unreliable and disappointing

Hi Walter, it looks like you checked the wrong permission. See my previous reply:

> could you check that the Guest role on your site has been allowed the 'mod/hvp:getcontent' permission?

Average of ratings: -
Re: Svar: Re: Svar: H5P is unreliable and disappointing

What I posted was the only thing I could find regarding H5P in the guest permissions.

Average of ratings: -
Re: H5P is unreliable and disappointing
I think you are being too harsh on H5P, Walter. H5P has been great in the cases that I have used it.

It is a little different in the way it works to other Moodle plugins which are more tightly integrated with Moodle, but its a tool designed to work in and out of Moodle. And perhaps your use case, allowing people to access activities when they are not logged in, is not very common. For mainstream use, H5P is pretty darn good I think.

Average of ratings: Useful (6)
Re: H5P is unreliable and disappointing

I have been tracking the use of H5P since it first became available as a Moodle plugin and have generally seen very positive feedback.  Some of the most positive feedback on anything available for Moodle since about 2001.

My only concern is that people understand that because it is mainly a JavaScript/Client technology one should not depend on it for high stakes assessments because it may be possible to spoof results.  But apart from that put it in the basket marked awesome.

Average of ratings: Useful (3)
Re: H5P is unreliable and disappointing

> I think you are being too harsh on H5P, Walter.

You may be right. I am not sure if H5P is officially approved for Moodle 3.4.

For now, I feel like I cannot trust H5P.

Average of ratings: -
Re: H5P is unreliable and disappointing

If you still "like" using H5P activities (but don't need the results to go to your gradebooks), one thing you could consider is building the activities directly on the H5P.org site and them embed the activity into your Moodle. This is how we currently use H5P (we also do not use the plug in until all the kinks are worked out). We have over 1,000 H5P activities embedded into our Moodle. Our students love them! -- they are very interactive, engaging, and provide immediate feedback. Even though Moodle Quizzes and do a lot of this, our students know the H5Ps aren't graded so they are less hesitant to use them : )

Average of ratings: Useful (1)
Re: H5P is unreliable and disappointing

That is an interesting solution, but it does have a few drawbacks:

- user activity is not logged (so it doesn't end up in your gradebook, course statistics or activity completion logs)

- any content you make on H5P,org can be accessed by anyone with the url, so it's more public than when you'd use the Moodle plugin. This means you'd have to be very careful about copyrighted materials and also have to take care of using the correct GPL / CC or other licenses for the activities you've created there.

Average of ratings: Useful (1)
Re: H5P is unreliable and disappointing

Walter,

have a look at the very well put together site of prepare2getahead.co.uk.

You can see some fantastic examples of H5P working and having full guest access.

While this is not Moodle but I think Wordpress it might give you some idea's of the scope of H5P other activities that might be more suited to what you are trying to achieve.

I am steering you towards the hotspot activity, but as you work through this site you can see some other great examples.

Also a good time to thank these guys for giving us more inspiration on what H5p is capable of.

A few more I have picked up on my travels.. and I see you have used google slides as an example, with in this next link have a look at the "slides" section as this is part of the Reveal and markdown slide content that has great potential as well.

More working examples..

Also I don't know if you have gone down the path of setting up  the truly local embedded H5P content via nadavkav's plugin but for myself it is a god send as it just makes things work. I just sat with a client on a MAC over the weekend and went through a few of the activities within our site and compared it to Chrome which I develop in and didn't have any problems.. Understanding that they don't work off the Moodle Mobile app. but this is a minor problem for us at the moment.

A key bit of the puzzle to get it working..

All Credits to nadavkav and the H5P team ...

So, once this is set up you can hide these activities and then introduce it in to where you want within a lesson, page, or where ever.

And you have the team here giving you some good advice on how to get it working, thus how could not trust a team that is open source and willing to engage with Moodle problems directly..

Average of ratings: Useful (4)
Re: H5P is unreliable and disappointing

Thank you for all of those resources.

Please understand that my disappointment with H5P is not with it's capabilities, but with it's reliability. I need to able to create an H5P project, and be fairly confident that it will actually work on whatever platform.

Average of ratings: -
Re: H5P is unreliable and disappointing

You get to play..

direct from the H5P HQ.. .Moodle embedding

"Yes, it is done and the only thing left now is to release it. We should be able to get the new version out later today "

Average of ratings: Useful (1)
Re: H5P is unreliable and disappointing

I upgraded the plugin, and it seems to working.

Big thanks to the developers.

Average of ratings: Useful (1)
Re: H5P is unreliable and disappointing

I am using h5p currently with moodle 3.3 started with 3.21  with 187 instances of it and I have to say my students and teachers love it. I will admit though we do not allow guest access to our site though. Like the rest I agree seems to be a problem with permissions. At first had some trouble with it but once I learned the little differences between h5p and other moodle plug ins it works fine. I have quite a few students using a variety of devices and have received no complaints.

Average of ratings: Useful (2)
Re: H5P is unreliable and disappointing

Hello,

If you find a bug with H5P or any of its libraries you can create issue here;

to proper repository. This way the bug will be known and so someone can fix it.

H5P feature requests should be posted here;

https://h5p.org/forum/16

So they may be added in the future if someone codes them.

Average of ratings: Useful (1)