hexo引入ckplayer文件
js文件 your_project/themes/<theme_name>/source/js 下面
文章 your_project/source/ 里面放md文件
视频文件放在 /your_project/public/resource 下面 MP4
<script type="text/javascript" src="/js/my.js"></script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<div id="video" style="width: 100%; height: 400px;max-width: 600px;"></div>
<script type="text/javascript" src="/resources/WMS拦截功能.mp4" charset="UTF-8"></script>
<script type="text/javascript">
var videoObject = {
container: '#video',//“#”代表容器的ID,“.”或“”代表容器的class
variable: 'player',//该属性必需设置,值等于下面的new chplayer()的对象
autoplay:false,
video:'/resources/WMS拦截功能.mp4',//视频地址
poster:'/pic/poster.png',
};
var player = new ckplayer(videoObject);
</script>
<script type="text/javascript" src="/js/my.js"></script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<div id="video" style="width: 100%; height: 400px;max-width: 600px;"></div>
<script type="text/javascript" src="/resources/WMS拦截功能.mp4" charset="UTF-8"></script>
<script type="text/javascript">
var videoObject = {
container: '#video',//“#”代表容器的ID,“.”或“”代表容器的class
variable: 'player',//该属性必需设置,值等于下面的new chplayer()的对象
autoplay:false,
video:'/resources/WMS拦截功能.mp4',//视频地址
poster:'/pic/poster.png',
};
var player = new ckplayer(videoObject);
</script>