本文作者:编辑 信息来源:文摘汇 发布时间:2016-02-28 阅读:次
帝国CMS7.2整合CuPlayer视频教程,手机wap与pc页同时播放视频
最近手机浏览网站的量远远超过了pc,帝国cms怎么设置视频播放呢,尤其是在新闻系统模型下播放视频,并且手机网站也可以同步播放。CuPlayer酷播播放器可以实现,本站整理了一起教程,分享给大家。
调用源码:(地址改成你自己的)
<!--极酷阳光播放器/代码开始-->
<script type="text/javascript" src="http://127.0.0.1/player/images/swfobject.js"></script>
<div class="video" id="CuPlayer"><b><img src="http://127.0.0.1/player/images/images/loading.gif" /> 网页视频播放器加载中,请稍后...</b></div>
<script type="text/javascript">
var so = new SWFObject("http://127.0.0.1/player/player.swf","myCuPlayer","600","410","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
//播放器设置文件-----------------------------
so.addVariable("JcScpFile","http://127.0.0.1/player/CuSunV2set.xml"); //配置文件
//视频文件及略缩图--------------------------
//so.addVariable("JcScpServer","rtmp://www.yoursite.com/vod"); //流媒体服务器
so.addVariable("JcScpAutoPlay","yes"); //是否自动播放
so.addVariable("JcScpVideoPath","[!--flvurl--]"); //视频文件地址
so.addVariable("JcScpImg","i[!--titlepic--]"); //视频缩略图
//-前置Flash广告-----------------------------
so.addVariable("ShowJcScpAFront","no");//是否开启前置广告
so.addVariable("JcScpCountDownsPosition","top-left");//广告到计时位置
so.addVariable("JcScpCountDowns","5"); //广告到计时
so.addVariable("JcScpAFrontW","600"); //广告宽度
so.addVariable("JcScpAFrontH","410"); //广告高度
so.addVariable("JcScpAFrontPath","images/a650x418.swf"); //广告文件地址
so.addVariable("JcScpAFrontLink","http://demo.cuplayer.com/CuSunPlayer/demo1.html"); //广告链接地址
//-视频广告参数-----------------------------
so.addVariable("ShowJcScpAVideo","no");//是否开启前置广告
so.addVariable("JcScpAVideoPath","http://demo.cuplayer.com/file/ad7.flv");//广告文件地址
so.addVariable("JcScpAVideoLink","http://demo.cuplayer.com/CuSunPlayer/demo2.html"); //广告链接地址
//-暂停广告参数-----------------------------
so.addVariable("ShowJcScpAPause","yes");//是否开启暂停广告
so.addVariable("JcScpAPauseW","300"); //广告宽度
so.addVariable("JcScpAPauseH","250"); //广告高度
so.addVariable("JcScpAPausePath","images/a300x250.swf"); //广告文件地址
so.addVariable("JcScpAPauseLink","http://demo.cuplayer.com/CuSunPlayer/demo3.html"); //广告链接地址
//-角标广告参数-----------------------------
so.addVariable("ShowJcScpACorner","yes");//是否开启角标广告
so.addVariable("JcScpACornerW","85"); //广告宽度
so.addVariable("JcScpACornerH","50"); //广告高度
so.addVariable("JcScpACornerPath","images/a370x250.swf");//广告文件地址
so.addVariable("JcScpACornerPosition","bottom-right");
so.addVariable("JcScpACornerLink","http://demo.cuplayer.com/CuSunPlayer/demo4.html"); //广告链接地址
//-后置广告参数-----------------------------
so.addVariable("ShowJcScpAEnd","yes"); //是否开启后置广告
so.addVariable("JcScpAEndW","400"); //广告宽度
so.addVariable("JcScpAEndH","300"); //广告高度
so.addVariable("JcScpAEndPath","images/a400x300.swf"); //广告文件地址
so.addVariable("JcScpAEndLink","http://demo.cuplayer.com/CuSunPlayer/demo5.html");//广告链接地址
//-----------------------------------------
so.addVariable("JcScpSharetitle","[!--title--]"); //视频标题
so.write("CuPlayer");
</script>
<script language=javascript src="http://127.0.0.1/player/images/images/jquery.js" type=text/javascript></script>
<script language=javascript src="ihttp://127.0.0.1/player/images/mages/action.js" type=text/javascript></script>
<!--极酷阳光播放器/代码结束-->
帝国cms7.2点击加载更多源代码,手机
本文链接:http://www.wenzhaihui.com/wenzhaihui/ITwenzhang/2016-02-28/12137.html
文章标签: