我正在構建一個網頁,並希望添加HTML視頻。它在Chrome等工作正常,但不是在Firefox。我可以聽到聲音,但Firefox無法顯示圖片,我改爲使用灰色屏幕。爲什麼HTML5視頻不能在Firefox中播放?
我有火狐25.0.1
這裏是我的代碼:
<figure id="video">
<video width="320" height="240" controls>
<source src="vid/asd.mp4" type="video/mp4">
<source src="vid/asd.ogg" type="video/ogg">
Sorry Your browser cannot play HTML5 video.
</video><br/>
<img src="img/pic.jpg" alt="Pics"/>
<figcaption>Some text here
<br/>size: 6,95MB</figcaption>
</figure>