一个基于bootstrap实现的HTML5视频播放器插件willesPlay.js

2022-11-21 0 263

一个基于bootstrap实现的HTML5视频播放器插件willesPlay.js

基于bootstrap实现的HTML5视频播放器支持手机页面。

与传统的HTML5播放器相比,具有更强大的功能。查看下面的效果截图。

 

一个基于bootstrap实现的HTML5视频播放器插件willesPlay.js

HTML代码结构示例如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<title>HTML5手机网页视频播放器代码</title>
<link rel="stylesheet" type="text/css" href="css/reset.css" rel="external nofollow" >
<link rel="stylesheet" href="bootstrap/css/bootstrap.css" rel="external nofollow" >
<link rel="stylesheet" type="text/css" href="css/willesPlay.css" rel="external nofollow" >
<script src="js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/willesPlay.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div id="willesPlay">
                <div class="playContent">
                    <div class="turnoff" style="right: -40px;">
                        <ul>
                            <li><a href="javascript:;" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  title="喜欢" class="glyphicon glyphicon-heart-empty"></a></li>
                            <li><a href="javascript:;" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  title="关灯" class="btnLight on glyphicon glyphicon-sunglasses"></a></li>
                            <li><a href="javascript:;" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  title="分享" class="glyphicon glyphicon-share"></a></li>
                        </ul>
                    </div>
                    <video id="playVideo" width="100%" height="100%">
                        <source src="http://220.167.105.121/170/2/11/acloud/151672/letv.v.yinyuetai.com/he.yinyuetai.com/uploads/videos/common/6609014F06AE1C8E99DE142502A2B157.flv" type="video/mp4">
                        当前浏览器不支持 video直接播放,点击这里下载视频: <a href="/" rel="external nofollow" >下载视频</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" style="display: none;">
                                <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>
</body>
</html>

 

 

 

1. 本站所有资源来源于用户上传和网络,因此不包含技术服务请大家谅解!如有侵权请邮件联系客服!cheeksyu@vip.qq.com
2. 本站不保证所提供下载的资源的准确性、安全性和完整性,资源仅供下载学习之用!如有链接无法下载、失效或广告,请联系客服处理!
3. 您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容资源!如用于商业或者非法用途,与本站无关,一切后果请用户自负!
4. 如果您也有好的资源或教程,您可以投稿发布,成功分享后有积分奖励和额外收入!
5.严禁将资源用于任何违法犯罪行为,不得违反国家法律,否则责任自负,一切法律责任与本站无关

源码下载

发表评论
暂无评论