滚动文字广告

 

 

滚动文字广告:
如果开启了滚动文字广告,在视频播放的同时,在画面的下方,会显示一组循环左右滚动的字幕广告;

提示:滚动文字广告的内容组,只能在配置文件中设定。

 

参数名称 数据类型 参数描述 备注
滚动文字广告 功能相关的参数
ShowJcScpAMoveText String

是否显示滚动文字广告

值为yes / no
textWidth Number 滚动区域宽度值 例如:500 ;
speed Number 滚动速度 例如:30;
news / 内容组节点  
li / 滚动文字节点  
link / 滚动文字链接  

 

提示:对应的滚动文字样式,请用与player.swf播放器文件同一目录下的 style.css 文件来处理(style.css必须与player.swf在同一目录下,这点很重要)

 

例(4.6.6)-1:style.css内容(用户可以修改以下的样式内容,即可改变滚动文字的大小、色彩等)

a:link{font-size:12px; font-family:Arial; color:#cccccc; text-decoration: none;}
a:hover{color:#ff9900; text-decoration:underline;}
a:active{color:#cccccc; text-decoration:none;}

 

例(4.6.6)-2:滚动文字广告调用参考(注意红色加粗部分)

//配置文件参数
......
ShowJcScpAEnd = "no"
JcScpAEndW = "400"
JcScpAEndH = "300"
JcScpAEndPath = "images/a400x300.swf"
JcScpAEndLink = "http://demo.cuplayer.com/CuSunPlayer/demo5.html"

ShowJcScpAMoveText = "yes"
/>
<SkinColor_Set
JcScpBackcolor = "0x000000"
JcScpBackcolortop = "0x353535"
JcScpLightcolor = "0xcfcfcf"

JcScpFontcolor = "0xffffff"
JcScptimebg = "0x393939"

JcScpLoadbar = "0x00a0e9"
JcScpLoaded = "0x4d4b4b"
JcScpLoadbg = "0x000000"
JcScpPlayBtn = "0x2d2d2d"
JcScpBar = "0xffffff"
/>
<news loop="true" textWidth="500" speed="30">
<li links="http://demo.cuplayer.com/CuSunPlayer/a1.html">1.市场疲弱鼓励政策频出 自住购房置业的最佳时机</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a2.html">2.通胀预期回升对企业估值影响复杂</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a3.html">3.2016年新金融创新创业发展论坛25号将在深圳举办</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a4.html">4.天津滨海新区将建跨境电商产业园 打造发展高地</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a5.html">5.利用欧美政策分化押注美元升值是否仍可行</li>
</news>
......

 

例(4.6.6)-3:滚动文字广告 【开启】或 【关闭】 的方式(注意蓝色标注部分)

第1种方式,在[ 配置文件参数 ] 中 开启 或 关闭 的方式,参考如下:

//配置文件参数
......
ShowJcScpAEnd = "no"
JcScpAEndW = "400"
JcScpAEndH = "300"
JcScpAEndPath = "images/a400x300.swf"
JcScpAEndLink = "http://demo.cuplayer.com/CuSunPlayer/demo5.html"

ShowJcScpAMoveText = "yes" 此处yes表示开启滚动文字广告,no表示关闭滚动文字广告
/>
<SkinColor_Set
JcScpBackcolor = "0x000000"
JcScpBackcolortop = "0x353535"
JcScpLightcolor = "0xcfcfcf"

JcScpFontcolor = "0xffffff"
JcScptimebg = "0x393939"

JcScpLoadbar = "0x00a0e9"
JcScpLoaded = "0x4d4b4b"
JcScpLoadbg = "0x000000"
JcScpPlayBtn = "0x2d2d2d"
JcScpBar = "0xffffff"
/>
<news loop="true" textWidth="500" speed="30">
<li links="http://demo.cuplayer.com/CuSunPlayer/a1.html">1.市场疲弱鼓励政策频出 自住购房置业的最佳时机</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a2.html">2.通胀预期回升对企业估值影响复杂</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a3.html">3.2016年新金融创新创业发展论坛25号将在深圳举办</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a4.html">4.天津滨海新区将建跨境电商产业园 打造发展高地</li>
<li links="http://demo.cuplayer.com/CuSunPlayer/a5.html">5.利用欧美政策分化押注美元升值是否仍可行</li>
</news>
......

 

第2种方式,在[ html代码参数 ] 中 开启 或 关闭 的方式,参考如下(注意蓝色标注部分):

<!--极酷播放器/代码开始-->
<script type="text/javascript" src="/player/images/swfobject.js"></script>
<div class="video" id="CuPlayer"><b><img src="/player/images/loading.gif" /> 网页视频播放器加载中,请稍后...</b></div>
<script type="text/javascript">
var so = new SWFObject("/player/player.swf","ply","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","/player/CuSunV3set.xml"); //配置文件地址 
//视频文件及略缩图--------------------------
//so.addVariable("JcScpServer","rtmp://www.yoursite.com/vod"); //流媒体服务器地址 
so.addVariable("JcScpVideoPath","http://demo.cuplayer.com/file/test.mp4"); //视频地址
so.addVariable("JcScpVideoPathHD","http://demo.cuplayer.com/file/test.mp4"); //高清视频地址
so.addVariable("JcScpImg","/player/images/startpic.jpg"); //视频图片
so.addVariable("JcScpAutoPlay","yes"); //是否自动播放
so.addVariable("JcScpStarTime","0"); //起始时间点(暂未启用)
so.addVariable("JcScpEndTime","0"); //结束时间点
so.addVariable("JcScpCuePointInfo","开始点|考题开始|结束点"); //提示点信息
so.addVariable("JcScpCuePointTime","50|110|150"); //提示点秒数值
//-前置Flash广告-----------------------------
so.addVariable("ShowJcScpAFront","yes"); //是否显示前置广告
so.addVariable("JcScpCountDownsPosition","top-left"); //倒计时位置
so.addVariable("JcScpCountDowns","5"); //广告倒计时位置
so.addVariable("JcScpAFrontW","600"); //前置广告宽度
so.addVariable("JcScpAFrontH","410"); //前置广告宽度
so.addVariable("JcScpAFrontPath","/player/images/a650x418.swf"); //前置广告地址
so.addVariable("JcScpAFrontLink","http://demo.cuplayer.com/CuSunPlayer/demo1.html"); //前置广告链接
//-视频广告参数-----------------------------
so.addVariable("ShowJcScpAVideo","no"); //是否显示前置视频广告
//so.addVariable("JcScpAVideoServer","rtmp://www.yoursite.com/vod"); //前置视频广告服务器
so.addVariable("JcScpAVideoPath","http://demo.cuplayer.com/file/ad1.mp4"); //前置视频广告地址
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","/player/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","/player/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","/player/images/a400x300.swf"); //后置广告地址
so.addVariable("JcScpAEndLink","http://demo.cuplayer.com/CuSunPlayer/demo5.html"); //后置广告链接
//-滚动文字广告参数-----------------------------
so.addVariable("ShowJcScpAMoveText","yes"); //是否开启滚动文字广告 此处yes表示开启 ,no表示关闭滚动文字广告
//-----------------------------------------
so.addVariable("JcScpSharetitle","标题信息"); //视频标题信息
so.write("CuPlayer");
</script>
<!--极酷播放器/代码结束-->