ImagePress – How to add videos

Ciprian on Friday, April 13, 2018 in Blog, ImagePress

NEW! Learn JavaScript by example. Code snippets, how-to's and tutorials. Try now!

This is a new feature in ImagePress 7.7.4.

If you use secondary uploads, you can now upload videos (most likely MP4s). They will appear automatically, within the post content.

One small gotcha regarding MIME types: your server needs to be configured to recognize the various types. For Windows Server, that means adding entries for the various MIME types to IIS. For Apache servers, you’ll need to add the AddType directive to your httpd.conf or local .htaccess files:

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

Add more video types above, according to your requirements.

Note that this feature uses the HTML5 <video> element. Check out the browser compatibility table.

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *