2016-11-27 167 views
0

當我點擊「播放」按鈕時,我無法讓我的視頻在瀏覽器中播放。我會非常感謝幫助。謝謝!html新手,無法在瀏覽器中播放視頻?

<video poster= "videoposter.jpg" width="40%" height="40%" controls= "controls"> 
    <source src="video/phone.mp4" type='video/mp4'/> 
    <source src="video/phone.webm" type='video/webm; codecs"vp8, vorbis"' /> 
    <source src="video/phone.ogv" type='video/ogv; codecs="theora, vorbis"'/> 

     Your browser doesn't support the video element in HTML5. 
    </video> 
+0

您的開發者控制檯的屏幕截圖,可能會有幫助。 – JEdot

+0

[將Youtube視頻源顯示爲HTML5視頻標記?]可能的重複項目(http://stackoverflow.com/questions/5157377/show-youtube-video-source-into-html5-video-tag) –

回答

0

可能的原因可能是:

1). File path of video isn't correct. Look at developer console in browser to get this rectified. 
2). IIS in Win 7 Pro does not have mp4 in it's mime types. Must add add the mime type. see instructions for adding mime type in link below. 
http://stackoverflow.com/questions/14079808/html5-video-is-not-playing-mp4-error-invalid-source/ 
+0

我花了幾個小時想知道爲什麼它不起作用,但它是不正確的文件路徑。多麼愚蠢的錯誤。非常感謝! –

相關問題