1 Star 0 Fork 5

搬砖小伙子/larryms

forked from larry/larryms 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
larry 提交于 2018-08-29 10:13 . Upload favicon.ico index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ckyplayer组件使用示例</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="layui/css/layui.css" media="all">
<style>
body{
background: #f2f2f2;
}
.video{
display: block;
width: 80%;
height: auto;
}
.margin15{
margin: 15px;
}
</style>
</head>
<body>
<div class="layui-container">
<div class="layui-row layui-col-space15 margin15">
<section class="layui-card">
<div class="layui-card-body">
<div class="video" id="video" data-url="http://img.ksbbs.com/asset/Mon_1703/05cacb4e02f9d9e.mp4" style="width: 100%;"></div>
</div>
</section>
</div>
</div>
<script type="text/javascript" src="layui/layui.js"></script>
<script type="text/javascript">
layui.config({
base: '/lib/'
}).extend({
ckplayer: 'ckplayer/ckplayer'
}).use(['jquery', 'ckplayer'], function() {
var $ = layui.$,
ckplayer = layui.ckplayer;
var vUrl = $('#video').data('url'),
videoObject = {
container: '#video',
loop: true,
autoplay: true,
video: [
[vUrl, 'video/mp4']
]
};
var player = new ckplayer(videoObject);
});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/runnningman/larryms.git
git@gitee.com:runnningman/larryms.git
runnningman
larryms
larryms
master

搜索帮助