mime type html5 video
Hello,
I've been having a problem with HTML5 video playing in firefox when hosted on GoDaddy. I'm almost positive that this is a server side issue but GoDaddy doesn't have the technical support to give me any more solutions than what they have repeatedly suggested. Here is the link to the index page I am having problems with:
http://gerardtonti.com/CV/index.html There is a video that plays above my name. You can see this in other browsers. The HTML for the video is this:
<video width="220px" height="227px" autoplay> <source type="video/mp4" src="http://www.gerardtonti.com/CV/img/Sneeze.mp4"> <source type="video/ogv" src="http://www.gerardtonti.com/CV/img/Sneeze.ogv"> <source type="video/webm" src="http://www.gerardtonti.com/CV/img/Sneeze.webm"> </video>
GoDaddy has suggested creating an htaccess file that contains the following code:
AddType video/mp4 .mp4 .m4v AddType video/ogg .ogv AddType video/webm .webm
I have uploaded the htaccess file with this code and nothing happened. I've placed the file in the root and in the folder that contains the videos. Still nothing. I have had this problem with another client who hosts on GoDaddy as well. Is there a solution to this problem?
Thanks!
Gerard
An gyara
Mafitar da aka zaɓa
Hi Gerard, hosts that provide correct content types for their media work perfectly fine. But I can't move mountains at GoDaddy, sorry.
Karanta wannan amsa a matsayinta 👍 1All Replies (5)
Hi Ian Millard, unlike proprietary browsers, Firefox does not include the patented technology to decode MPEG media. Instead, components on the system are used.
On Windows, XP is a special case. Windows Vista and later ship with Media Foundation. Microsoft does not ship Media Foundation for Windows XP, so recent versions of Firefox use DirectShow to play MPEG encoded media on Windows XP.
If you are concerned that visitors to your site will not be able to play MPEG encoded media, either because they do not have the necessary system software or because they have disabled Firefox's ability to do it (users who want to more easily download MP3s sometimes disable Firefox's built-in player), then you can provide a fallback. Either you can transcode the media to an open format, or you can add object tags and let a plugin such as QuickTime or Windows Media Player handle the MP4.
An gyara
On Windows XP the video should play if the media.directshow.enabled pref is true and there is native support to play this craft.mp4 file.
- http://www.imillard.com/h5vid/craft.mp4
What is "native support?"
If Chrome doesn't need this support, why does FireFox?
The whole point is to use HTML5 to play videos with a minimum of fuss, using straightforward coding. It shouldn't be necessary to use a work-around to fix yet another FireFox omission.
I might as well keep using Flash Plugins.
Native support is to fallback to function that your Windows Operating System provides, so this only work if you have installed codecs to play such media files. I don't know if Google Chrome comes with built-in support for playing MP4 files (it probably does include this support).
Hi Ian Millard, I agree it's harder than we would like it to be, but with so much diversity among systems, I think it's a overly optimistic to expect that you can find a one-size-fits-all approach for streaming media. Maybe someday!