2011-11-21 182 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