下一代HTML5之插入一段视频video或者插入一段视频的插件
效果:
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>逆水行舟不进则退</title>
</head>
<body>
<video width="300" height="200" controls>
<!--要有controls,否则不会显示,它是为了增加一些控件-->
<!--下面是设置视频的源和类型-->
<source src="1.qlv" type="video">
你的浏览器不支持video标签
</video>
<!--下面的这个就是在优酷视频的分享中,获取HTML代码,然后粘贴到这个,作为一个插件-->
<embed src='http://player.youku.com/player.php/sid/XMTU2MjU1NjE0NA==/v.swf' allowFullScreen='true'
quality='high' width='480' height='400' align='middle' allowScriptAccess='always'
type='application/x-shockwave-flash'>
</embed>
</body>
</html>
video事件:
play() pause() load() error()
属性:
currentSrc currentTime videoWidth VideoHeight error paused