一个很酷炫的网页 HTML5 视频播放器
源码下载:
[](http://yuweining.cn/t/?dir=Html5/video/v/)http://yuweining.cn/t/?dir=Html5/video/v
[](http://yuweining.cn/t/Html5/video/v/index.html)http://yuweining.cn/t/Html5/video/v/index.html
基于 bootstrap 框架。网页头部引用 css 及 js
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/willesPlay.css"/>
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="js/willesPlay.js" type="text/javascript"></script>
网页代码
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="willesPlay">
<div class="playHeader">
<div class="videoName">Tara - 懂的那份感觉</div>
</div>
<div class="playContent">
<div class="turnoff">
<ul>
<li><a href="javascript:;" title="喜欢" class="glyphicon glyphicon-heart-empty"></a></li>
<li><a href="javascript:;" title="关灯" class="btnLight on glyphicon glyphicon-sunglasses"></a></li>
<li><a href="javascript:;" title="分享" class="glyphicon glyphicon-share"></a></li>
</ul>
</div>
<video width="100%" height="100%" id="playVideo">
<source src="http://he.yinyuetai.com/uploads/videos/common/6609014F06AE1C8E99DE142502A2B157.flv" type="video/mp4"></source>
当前浏览器不支持 video直接播放,点击这里下载视频: <a href="/">下载视频</a>
</video>
<div class="playTip glyphicon glyphicon-play"></div>
</div>
<div class="playControll">
<div class="playPause playIcon"></div>
<div class="timebar">
<span class="currentTime">0:00:00</span>
<div class="progress">
<div class="progress-bar progress-bar-danger progress-bar-striped" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: 0%"></div>
</div>
<span class="duration">0:00:00</span>
</div>
<div class="otherControl">
<span class="volume glyphicon glyphicon-volume-down"></span>
<span class="fullScreen glyphicon glyphicon-fullscreen"></span>
<div class="volumeBar">
<div class="volumewrap">
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: 8px;height: 40%;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="text-align:center;clear:both;">
</div>
> 此篇文章【一个很酷炫的网页 HTML5 视频播放器】,均来自于网络,贫小子仅作分享