Does H5P optimise images & videos at all
Hi all,
Does H5P optimise images & videos? I am having trouble finding any info in the documentation or the forum.
We are using Wordpress with H5P but notice some long load times. Is there a way to optimise these via H5P settings or do we need to do it before creating the h5p tasks?
Also if we do have to optimise all of the images ourselves, is there a way we can download the images from H5P so that we have the correct image file names and then we can optimise them and overwrite the existing large images with the optimised ones to the h5p server so that we dont have to edit every single h5p project. We have heaps of projects and looking to save as much time as possible.
Cheers, any advice would be greatly appreciated.
otacke
Mon, 06/19/2023 - 11:41
Permalink
Hi!H5P does not touch media
Hi!
H5P does not touch media that you upload in any way. The browser is the entity that plays videos, not H5P. H5P merely used the HTML5 video playing capabilities of the browser, so it doesn't stream anything but videos will need to get loaded to the client in full, yes.
You will find the media in `wp-content/uploads/h5p/content/[ID_of_the_respective_content]/images` or `wp-content/uploads/h5p/content/[ID_of_the_respective_content]/videos` or `wp-content/uploads/h5p/content/[ID_of_the_respective_content]/audios`. Please note that H5P will not register you modifying the files, so the export files that people can download will still contain the old versions as they are currently generated when saving an edited file. You will need to edit/save content after changing the media to let the export files be re-created.
Best,
Oliver