Reputation: 76
Is there a way to deliver 'movie.m4v' as 'movie.mp4' to Firefox 21? I already figured out how to sniff FF21 with PHP and let it put 'movie.mp4' as additional source in the video element (HTML 5) and tried a simple mod-rewrite with replacing the suffix. But it didn't work. Is there a way of changing the suffix in the htaccess without FF noticing it? Sending the very same m4v-file with a mp4-suffix?
(Mozilla forgot to add the suffix .m4v (like it happended to iOS two years ago; Apple fixed it within two days after I reported it) or omitted it on purpose, because it is only common and not in the spec.)
Thanks, Runa
Upvotes: 0
Views: 981
Reputation: 75707
Make sure your .htaccess file or Apache config has a line like:
AddType video/mp4 mp4 m4v f4v f4p
Firefox doesn't care about the file extension, it cares what content type is being set by the server in the HTTP headers, it's the server which cares about the file extension.
Upvotes: 1