您可以将 Flash 替代项作为<video>
标签中的最后一项弹出,如果 HTML5 视频没有,它将播放。
请参阅 Mark Pilgrim 的示例,因为它全面且定期更新:http ://diveintohtml5.ep.io/video.html#example
总结一下:
<video>
<!-- HTML5 video -->
<source src="video.webm" type='video/webm; codecs="vp8, vorbis"'>
<source src="video.ogv" type='video/ogg; codecs="theora, vorbis"'>
<source src="video.mp4">
<!-- Flash player fallback for user agents that don’t support HTML5 video -->
<!-- All user agents that don’t understand the <video> tag, or don’t support
the video formats you’ve provided, will show this instead. Even IE 6. -->
<object width="320" height="240" type="application/x-shockwave-flash"
data="flowplayer-3.2.1.swf">
<param name="movie" value="flowplayer-3.2.1.swf">
<param name="flashvars" value='config={"clip": {"url": "video.mp4", "autoPlay":false, "autoBuffering":true}}'>
</object>
</video>