為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

HTML5 videos do not play

  • 7 回覆
  • 206 有這個問題
  • 11 次檢視
  • 最近回覆由 cor-el

more options

When I click play on an HTML5 video, the video starts downloading but it does not play. Pressing pause/play again does not solve the problem. Moving the play head to a new location does not solve the problem either.

This happened

Every time Firefox opened

== I started using Firefox

When I click play on an HTML5 video, the video starts downloading but it does not play. Pressing pause/play again does not solve the problem. Moving the play head to a new location does not solve the problem either. == This happened == Every time Firefox opened == I started using Firefox

所有回覆 (7)

more options
more options

TXGuy, that page you've linked to is out of date, it only talks about Theora video, not webm. I'm seeing the same problem as AnonymousUser if I have my privacy preference set to not accept cookies from sites. I've made an exception for youtube (Tools > Page Info > Permissions > Set Cookies > Allow) so I could opt in to their html5 beta, but it makes no difference to the problem. If I want to watch a webm youtube video I have to set "Accept cookies from sites" as a global preference

more options

See also https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements

Make sure that the server sends the video files with the correct MIME (content) type, otherwise Firefox won't play them.

more options

I had the same problem too. I found a tutorial on Lynda.com that was very helpful. I needed to configure my server to deliver html5 formats. This requires a .htaccess file. You can put it in any directory and it will not effect directories above, just within that folder or below. It is simple a txt file that has code like this:


AddType video/mp4  mp4 m4v
AddType audio/mp4  m4a
AddType video/ogg  ogv
AddType audio/ogg  ogg oga
AddType video/webm webm


Make sure that when it is uploaded, it is renamed to not include the .txt. The file name should be .htaccess Let me know if you have questions with this. I have been pulling my hair out over this for weeks and am so happy to finally have it playing on Firefox. Hope this helps....

由 cor-el 於 修改

more options

Thank you so much, avanluv77!

I just updated to Firefox 8.0 and the .webm/.mp4 versions of my HTML5 videofile wouldn't show. I included your code in my .htaccess and now everything is fine!!

more options

I have tried updating the .htaccess file but the video does not play in html5 video tag. However when I copy the location of the file, I could play the video directly.

Donno whats the problem...

my code:

  • source src="videos/01.mp4" type='video/mp4' />
  • source src="videos/01.webm" type='video/webm' />

replace * with <

由 kavitadey 於 修改

more options

Did you check with which content type the server sends the file?

Live Http Headers: