2 Star 38 Fork 15

TimVan / layui-ckplayer

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

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

About

基于ckplayer视频播放器封装的,适用于layui的扩展组件 expand collapse
HTML
MIT
Cancel

Releases (1)

All

layui-ckplayer

Contributors

All

Activities

Load More
can not load any more
HTML
1
https://gitee.com/TimVanX/layui-ckplayer.git
git@gitee.com:TimVanX/layui-ckplayer.git
TimVanX
layui-ckplayer
layui-ckplayer
master

Search