H5P Activities Not Visible to Guests in Moodle

Hi,

I am having a problem where Interactive Videos are not avialable to Guests in Moodle (I would like the course content to be public).

Users logged in as guests can successfully view other content.  However, in selecting the Interactive Videos, the video description will load, but not the actual video.

Registered User Login
vs.
Guest Login Can't View H5P Content

It took me a while to notice this problem because apparently if I have logged in and viewed the content, e.g., as administrator, logout, and then view as guest, I can now successfully view any of the H5P videos as a guest (not just the one I looked at):

Guest Login After Admin Login


I have confirmed the setting here for enabling guest access:
https://docs.moodle.org/33/en/Guest_access
And under Course Administration → Permissions → Activity: H5P  →  Get/view content of H5P file in course
the Guest role is among those with access.
Moodle is set to log in visitors as guest automatically for these courses

Moodle Version: 3.1.1
H5P version: 1.4
Interactive Video version: 1.15.0

Content types: 
icc's picture

Try giving your guest user the following permission: mod/hvp:getcachedassets

Hi, icc,  thank you for your reply.

Under
Course Administration → Users → Permissions
there is no mod/hvp:getcachedaccets option listed.  Is it configurable somewhere else?

H5P Permission Settings

For the available options, any H5P option that is enabled for students is also enabled for guests.

icc's picture

If you go to 'Site administration \ Users \ Permissions \ Define roles' and click edit(cog) next to the Guest role you should be able to find and allow the permission at the bottom of the form.

(since content types are shared between courses the permission to view them is on the global/system level)

That has solved the problem.  Thank you very much!

Hi ICC,

I've gone to 'Site administration \ Users \ Permissions \ Define roles' and clicked on the edit (cog) next to the Guest role as well as the Student role and gave permission to mod/hvp:getcachedassets and nothing changed on the Guest or Student roles.

Is there something I am missing because it still displays the following on my embeded H5P activity:

The only thing it shows is the H5P logo with "You do not have access to this content. Try logging in."

icc's picture

Are you able to view the H5P activity in the course it was created? 

Permission mod/hvp:getcachedassets allowed. Still I cannot see any content in guest role. Message: "You do not have access to this content. Try logging in." Need some good advice. Is there any solution here? Help!

thomasmars's picture

Hi, you need to provide us with more information for us to efficiently help you.

Which permissions are allowed for the guest ? Which context are the guest in ?
Have you enabled guest access for the course and the content ?
Is this normal content in a course or embedded somewhere else ?
Do you get any error messages in your browser's console or in your php error log ?

The more information you can provide us with, the easier it will be for us to give you a precise answer and help you. Screenshots are also very helpful.
Thanks, Thomas.

vladycruz's picture

Estimado.

Yo tengo un problema parecido, pero los que no pueden ver los recursos interactivos son los estudiantes, quizá alguna idea por donde corregir el error?

Attachments: 
BV52's picture

Hi vladycruz,

Please see my comment here.

-BV52

alcecal's picture

 

  1. As Administrator go to Site administration
  2. Select Advanced features
  3. Check Allow stealth activities
  4. Save

    Then got to your course
  5. Activate Editing
  6. Go to the H5P content or course element you want to hide and make it available
  7. Clic on Edit
  8. Select Hide
  9. Clic on Edit again
  10. Select Make available

    Now your students will be able to see H5P embed content

 

alcecal's picture

 

  1. As Administrator go to Site administration
  2. Select Advanced features
  3. Check Allow stealth activities
  4. Save

    Then got to your course
  5. Activate Editing
  6. Go to the H5P content or course element you want to hide and make it available
  7. Clic on Edit
  8. Select Hide
  9. Clic on Edit again
  10. Select Make available

    Now your students will be able to see H5P embed content

 

adeloach's picture

H5P Community, 

I want my H5P content to be visible and available to my guest users.  

I have read the other posts about giving permission to the following:

mod/hvp:getcachedassets

but I do not see this information on my Editing Role 'Guest' page (see attached screenshot).

Is this something I need to add to Moodle?  If so, how do I do it?

Additional info:

  • I can see and interact with the H5P content as the system administrator.  But as a guest I cannot.
  • I can access the Moodle forum without any problem as a guest.
  • I've my H5P content using the External Tool method in Moodle
  • I've include screenshot of System Administrator view and Guest view of the H5P.
  • I'm new to both Moodle and H5P. So, please keep that in mind.

Thank you in advance.

Andre

 

I have the same probleme.  We activated the guests according to: https://docs.moodle.org/311/en/Guest_access.

getcachedassets is activ as mentioned in this thread (see also screen).

 

You can try it out in this course: https://moodle.careum-weiterbildung.ch/course/view.php?id=1136. Scroll down to Quiz. 

Thanks for advice. Reto

I solved it this way:

Now it is visible for guests without login.