Can I remove Interactive Video from download options from H5P hub

Hi 

We are having issues with Interactive video while trying to add a video using Macs and some browsers, the add video form does not display. Until we can identify the issue consistantly we want to prevent our WordPress 5.7.2 users from downloading the Interactive Video library. H5P version 1.15.2

Can this be done?

Regards

Christine

 

Content types: 
BV52's picture

Hi Christine,

If you meant to disable Interactive Video so that authors cannot create them, you can go to H5P content -> Libraries then place a check on "Restricted" for Interactive Video and Interactive Video editor.

-BV

Attachments: 

Hi thanks for the update, I really appreciated the response.

We manage an extremely large multi site so updating each blog is not possible. Is there any way of 'removing' the Interactive Video programatically across the multi site please?

Regards

Christine

 

otacke's picture

Hi Christine!

All that checking the "restricted" checkbox does is set a flag in the "<prefix>_h5p_libraries" table of the database. So, a query that runs over all the <prefix>_h5p_libraries" tables and sets the value in the "restricted" column to 1 if the "name" column matches "H5P.InteractiveVideo" should do the job.

Cheers,
Oliver

Hi thanks for your response it is very much appreciated.

We have a very large multisite so updating each blog is currently not practicle. Is there a way of not displaying the Interactive video programatically please?

Regards

Christine

 

I have tried marking Interactive Video as restricted and I can still add a video and add it to a post so this does not appear to be working for me, I had downloaded the Interactive Video content type first and then marked it as restricted.

I also tried adding a database record to restrict the Interactive Video but this didn't affect the ability to view Interactive Video in the content types available in the hub.

Is there any way to prevent Interactive Video displaying in the list that is on the Hub? Then no one can click on it and download it.

Thanks for your help

Regards

Christine

 

 

BV52's picture

Hi Christine,

Have you tried checking the list while logged in as a non-administrator? Administrator accounts will always see all the content types.

-BV

Thanks for the clarification, I do see a restricted list of content types by logging in as an editor.

Unfortunately this does not solve the our problem as the administrator should not be able to add Interactive Video. 

Thank you

Christine

BV52's picture

Hi Christine,

I'm afraid this is not possible within the settings of H5P. This can only be done by changing/adding codes into the plugin.

-BV

Thank you for your help.