HTML5 video “not working” in Firefox?

I lost an hour the other day over Firefox not playing .ogv/.webm file. Again. HTML5 video was actually working in FF. The problem was that the web server didn’t know how to handle video file formats and another problem is that I’m getting older.

Anyway, add this to .htaccess file

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

Update

Safari and possibly some other browsers hang if they are trying to download .mp4 file from password protected directory, for instance, on a test web site. Perfect occasion for a CDN management exercise.

Marko Dugonjić is a designer specialized in user experience design, web typography and web standards. He runs a nanoscale user interface studio Creative Nights and organizes FFWD.PRO, a micro-conference and workshops for web professionals.

Interested in more content like this?