兼容主流浏览器:
<video width="640" height="480" controls>
<source src="1.mp4">
<source src="1.webm">
<source src="1.ogg">
<object>实现flash插件的播放,如果屏蔽IE9以下则不需要</object>
</video>
兼容IE8:
<video width="100%" height="515px" controls preload>
<source src="1.mp4" type="video/mp4" codecs="avc1.42E01E,mp4a.40.2">
<!–[if lt IE 8]>
<embed src="1.mp4" width="100%" height="515px" autostart=false/>
<![endif]–>
</video>
兼容所有浏览器:
<video width="640" height="480" controls preload>
<source src="1.mp4">
<source src="1.webm">
<source src="1.ogg">
<!–[if lt IE 8]>
<embed src="1.mp4" width="100%" height="515px" autostart=false>
<![endif]–>
</video>