I can't figure out the following problem:
I use HTML 5 video on my web site. For crossbrowser support, I keep video in "mov" and "ogv" formats, so that Firefox can play it.
In ./config/initializers/mime_types.rb I have the following code:
Rack::Mime::MIME_TYPES.merge!({
".ogg" => "application/ogg",
".ogx" => "application/ogg",
".ogv" => "video/ogg",
".oga" => "audio/ogg",
".mp4" => "video/mp4",
".m4v" => "video/mp4",
".mp3" => "audio/mpeg",
".m4a" => "audio/mpeg"
})
It works on my local machine, but won't on a production server.
I've tried many ways to make this work:
Rails: MIME type issues with .m4v files
Setting Mime Type for .ogv files in Rails Development Environment
Make OGG Video work with Rails
None of these helped me, and I'm completely stuck.