搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

mime type html5 video

more options

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

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: <pre><nowiki> <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> </nowiki></pre> GoDaddy has suggested creating an htaccess file that contains the following code: <pre><nowiki> AddType video/mp4 .mp4 .m4v AddType video/ogg .ogv AddType video/webm .webm </nowiki></pre> 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

由GerardTonti于修改

被采纳的解决方案

Hi Gerard, hosts that provide correct content types for their media work perfectly fine. But I can't move mountains at GoDaddy, sorry.

定位到答案原位置 👍 1

所有回复 (5)

more options

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.

由jscher2000 - Support Volunteer于修改

more options

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
more options

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.

more options

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).

more options

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!

  1. 1
  2. 2