2011-11-21 185 views
0

我尝试在网站上添加video标记,但遇到问题。 该视频在Chrome中播放效果良好,但在Firefox中无法播放,即使网址是正确的。视频不能在Firefox中播放(但在Chrome中播放)

<video src="http://127.0.0.1/st_martin/index.php/fre/content/download/89/643/file/test-video.mp4" width="640" height="266" poster="/st_martin/var/ezwebin_site/storage/images/les-partenaires/l-auberge-gourmande/video-1/764-5-fre-FR/Video-1_large.png" controls> 
    Your browser does not support the <code>video</code> element. 
</video> 

精力充沛的事情:当我在Firefox中复制/粘贴文件URL时,它播放视频没有任何问题。

使用嵌入视频播放器导致一个永无止境的加载动画。

回答

6

Firefox不支持。 mp4播放。尝试将视频转换为.ogg格式,该格式正在快速成为html 5应用程序的标准格式。

+1

Yeap,在Firefox中还不支持MPEG-4和H.264。可以通过http://html5test.com/轻松进行检查(跳转到视频部分) – nowaq