Last Updated: February 25, 2016
·
866
· chrswyatt

HTML5 Video Fix

Having a hangup with your html5 video not playing in a specific browser? Can't get FireFox to load the video but Chrome, Safari and IE can? It'd play on localhost but no dice on the remote server? Fret not and try this tip ...

If it seems to be hanging up on the GET for the .webm (mp4 or ogv) copy of the video, add an .htaccess file to the site root on the remote server with the following AddType directives:

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

This will tell the server to recognize these files and load them correctly when requested.