3 Star 40 Fork 17

TimVan / layui-ckplayer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

layui-ckplayer

介绍

基于ckplayer视频播放器封装的,适用于layui的扩展组件 ckplayer版本: X2 原插件 ckplayer 视频播放组件/larryms已经很久没有更新,且无法自定义设置,因此自己封装一份

使用说明

示例图片

//定义一个变量:videoObject,用来做为视频初始化配置
                var videoObject = {
                    container: '#video', //视频播放器所在div
                    variable: 'player',
                    video: videoUrl, //视频的url地址
                    baseUrl: baseUrl //请求配置json所在目录,默认指向ckplayer下
                };
                var player = new ckplayer(videoObject);//初始化播放器

1.新增 baseUrl 属性,作为默认的请求配置json路径
2.lib包里的ckplayer文件夹是源码文件,拖放至项目中即可使用
3.example里有示例页面可供参考

详细文档

请参考ckplayer和layui的文档
ckplayer文档
layui插件文档

致谢/参考

  1. ckplayer 视频播放组件/larryms
MIT License Copyright (c) 2021 TimVan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于ckplayer视频播放器封装的,适用于layui的扩展组件 展开 收起
HTML
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
HTML
1
https://gitee.com/TimVanX/layui-ckplayer.git
git@gitee.com:TimVanX/layui-ckplayer.git
TimVanX
layui-ckplayer
layui-ckplayer
master

搜索帮助