新的HTML,无法在浏览器中播放视频?

时间:2016-11-27 06:59:28

标签: html css video web html5-video

单击“播放”按钮后,我无法在浏览器中播放视频。我非常感谢你的帮助。谢谢!

<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>

1 个答案:

答案 0 :(得分: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/