导航

一个很酷炫的网页HTML5 视频播放器

• March 12, 2017 • Read: 855 • 每日必看

HTML5 视频播放器

源码下载:

http://yuweining.cn/t/?dir=Html5/video/v

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>

Tags: 分享
查看所有文章 QR Code Tip
QR Code for this page
Tipping QR Code
0:00