willesPlay.js 炫酷又简约的视频播放器

2020-01-05 23:44:50 视频

超炫酷的HTML5视频播放器

超炫酷的HTML5视频播放器 支持手机移动页面

引用代码:

<link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/willesPlay.css" />
<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
<script src="js/willesPlay.js" type="text/javascript" charset="utf-8"></script>

插入代码:

<div id="willesPlay">

  <div class="playHeader">
    <div class="videoName">Coca-Cola AD</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="https://xpixv.github.io/willesPlay.js-Video-Demo/video/coca-cola.mp4" 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>

评论