为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Why does my website video works on Chrome and Safari but not Firefox?

  • 6 个回答
  • 2 人有此问题
  • 10 次查看
  • 最后回复者为 cor-el

more options

I just uploaded my website and when I view the site on Chrome or Safari my video works fine. When I look at it on Firefox, the controls for the video are there but there is no picture. It doesn't matter what computer I use to view the site. I used Dreamweaver CC to create the site and I used MP4, OGG, and WEBM, video files as well as a flash backup. The strange thing is that when do a local preview on Firefox within the Dreamweaver program it works just fine.

I just uploaded my website and when I view the site on Chrome or Safari my video works fine. When I look at it on Firefox, the controls for the video are there but there is no picture. It doesn't matter what computer I use to view the site. I used Dreamweaver CC to create the site and I used MP4, OGG, and WEBM, video files as well as a flash backup. The strange thing is that when do a local preview on Firefox within the Dreamweaver program it works just fine.

所有回复 (6)

more options

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

Did you check the src attribute of the video and verified that this file is on the server in the specified location?

more options

I'm sorry, I am very new to creating websites. I don't understand your questions.

more options

Here is the code for the video div.

<div id="video">
    <video controls autoplay >
      <source src="Video/MMMFoxNews.mp4" type="video/mp4">
      <source src="Video/MMMFoxNews.ogg" type="video/ogg">
      <source src="Video/MMMFoxNews.webm" type="video/webm">
      <embed src="Video/MMMFoxNews.mp4" type="application/x-shockwave-flash" />    
</video>

由cor-el于修改

more options
   

more options

Apparently you can't put code into a reply. Anyway, I have source src="Video/MMMFoxNews.mp4" type="video/mp4" for each of the different types of video files.

more options

Are all the files in that location on the server and is the server configured to send each of those files with the correct MIME type?

The later is essential because otherwise Firefox will refuse to play a file.

You can check the Browser Console (Firefox/Tools > Web Developer) for errors.

由cor-el于修改