Images from Wordpress Media Library

Hi.

Thanks for the great work!

I've recently set up a cdn server using Amazon Cloudfront, which allows me to load my site media (images, audio, videos, etc) from there.

I've been able to load audios and videos from cloudfront cdn by using their cdn url, when creating H5P content. However, this isn't possible with images since H5P only allows to upload images from my PC/laptop, and when they are uploaded they're stored in my web hosting server and not in my cdn server (amazon cloudfront), and even when the images are uploaded from my server to amazon server, it isn't possible to replace the image url in the h5p file.

Any way to fix this issue please.

I hope I made myself clear.

Thanks and keep up the amazing work.

I'm very interested in this and following this topic.

In my case, I want to reuse images in my Wordpress Media Library in H5P projects. I can't understand why there is no option to either (preferably) select an image from the Wordpress media library or at least copy/paste the URL. Other plugins have access to the Wordpress Media Library, why not H5P plugin? 

 

 

otacke's picture

Hi Brad!

The reason probably is that H5P is not just a plugin for WordPress, but for a couple of other systems, too. In consequence, it uses more general approaches and it doesn't support all the features that a platform-specific plugin would. The H5P editor (and H5P content) essentially runs without a connection to the host system such as WordPress. I believe some major changes to the core of H5P would be required to allow the H5P editor to use platform specific media libraries like the one of WordPress.

Best,
Oliver

If the file picker is out of the question, it shouldn't be hard to just add a text field for an image source URL, like is possible with videos. One of the reasons this is important is for images one CDN like Jetpack that won't get picked up in the H5P because Jetpack is only looking in the WP Media Library.

otacke's picture

Hi Brad!

That seems in fact to be a good idea!

Best,

Oliver