Bengal Server and .ogv files
So we have run into an additional issue with embedding video into our html5 pages. The problem is that a .ogv file is not recognized as a video file by our school’s servers and if you load your page in firefox from the web (NOT locally, because it works fine locally), firefox will still not play your video and give a mime error.
If you are using bengal space, we have to tell the server that .ogv is a video filetype. To do this we have to interact with the server by creating a disappearing file. Disappearing, you might ask? Yes. Why? Well, because servers are rather mysterious things.
So, here we go, (and please follow this exactly step-by-step):
1. Connect to Bengal.
2. Open TextWrangler and create a new file.
3. Copy this code into TextWrangler:
AddType video/ogg .ogm
AddType video/ogg .ogv
AddType video/ogg .ogg
AddType video/webm .webm
AddType audio/webm .weba
AddType video/mp4 .mp4
AddType video/x-m4v .m4v
4. Go File -> Save As and navigate the directory to the folder in your bengal space that has your html page for your video.
5. Name the file .htaccess and click save.
6. A warning that says “Names that begin with a dot “.” are reserved for the system.” will pop up. Click on the Use “.” button.
7. Reload your webpage (not locally) in firefox and your page should play fine now.