HTML5视频标记在FF中不起作用

时间:2012-01-26 01:14:51

标签: html5

this site上,视频无法在FF中播放。但它确实在Chrome中发挥作用。我需要添加什么吗?

<video width="580" height="318" controls poster="link to poster">
    <source src="link to video">
    Your browser does not support the HTML5 Video tag. Please update to a <a href="https://www.google.com/chrome/" target="_blank">modern browser</a>.
</video>

2 个答案:

答案 0 :(得分:2)

在您网站的来源中:

<source src="/wp-content/themes/bigframe/media/bigframe_reel.mp4">

Firefox不支持HTML5视频的mp4视频。

您可以向Flash播放器添加其他来源(WebM,OGG)和后备广告。有关兼容性,请参阅this table

答案 1 :(得分:0)

您可以通过为不同的浏览器提供不同格式的视频或音频来解决问题。

<video controls>
  <source src="foo.ogg" type="video/ogg">
  <source src="foo.mp4" type="video/mp4">
  Your browser does not support the <code>video</code> element.
</video>