HTML5很强大的说,但IE的不给力。让人抓狂。这里介绍一个HTML5的视频播放器,VideoJS 是最流行的 HTML5 视频播放器,免费、开源,可使用 CSS 轻松定制皮肤,支持全屏,在不支持的浏览器自动切换为 Flash 播放。
没什么好说的直接贴源码
<!DOCTYPE html>
<html>
<head>
<title>HTML5视频播放器Video.Js演示地址</title>
<link href="video-js.css" rel="stylesheet" type="text/css">
<script src="video.js"></script>
<script>
videojs.options.flash.swf = "video-js.swf";
</script>
</head>
<body>
<div style="width:640px;margin:30px auto">
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="264" poster="image/por.png" data-setup='{"example_option":true}'>
<source src="mp4/defu.mp4" type='video/mp4'></source>
</video>
</div>
<div style="text-align:center;clear:both">
</div>
</body>
</html>
大家也可以去他的官方网站http://videojs.com/