搜索 | 用户支持

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

详细了解

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: