前置广告:
视频播放之前,加载显示的一段带倒计时的广告;
支持swf,jpg,gif,png文件格式,均可以添加广告链接地址;
参数名称 | 数据类型 | 参数描述 | 备注 |
前置广告 功能相关的参数 | |||
ShowJcScpAFront | String | 是否显示前置广告 | yes/no |
JcScpCountDownsPosition | String | 广告倒计时位置 | top-right |
JcScpCountDowns | Number | 广告倒计时 | 秒数值 |
JcScpAFrontW | Number | 前置Flash广告宽度 | |
JcScpAFrontH | Number | 前置Flash广告高度 | |
JcScpAFrontPath | String | 前置Flash广告地址 | 支持 swf/jpg/png/gif 格式 |
JcScpAFrontLink | String | 前置Flash广告链接 | 如http://www.163.com/test.html |
关于随机广告提示说明:
本播放器支持设定一组广告及链接,每次随机显示其中一个广告。参数传值写法很简单,就是以"|"分隔即可,swf广告、jpg广告、gif广告、png广告都可以。例:
images/a300x250_01.swf|images/a300x250_02.swf|images/a300x250_01.jpg
[ HTML参数代码 ]调用参考:
so.addVariable("JcScpAFrontPath","images/a300x250_01.swf|images/a300x250_01.jpg"); //随机广告地址
so.addVariable("JcScpAFrontLink","http://www.baidu.com|http://www.sina.com.cn");//广告链接地址
[ 配置文件代码 ]调用参考:
JcScpAFrontPath = "images/a300x250_01.swf|images/a300x250_01.jpg"
JcScpAFrontLink = "http://www.baidu.com|http://www.sina.com.cn"
........
例(4.6.1)-1:调用方式一 ( 使用[ HTML代码参数 ] 中的参数值 )
//HTML代码参数
<script type="text/javascript" src="images/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/Player/Player.swf","ply","520","325","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/CuSunV4set.xml");
so.addVariable("JcScpVideoPath","http://demo.cuplayer.com/file/test.mp4");
so.addVariable("JcScpImg","/Player/Images/startpic..jpg");
......
//-前置广告-----------------------------
so.addVariable("ShowJcScpAFront","yes"); //是否显示前置广告
so.addVariable("JcScpCountDownsPosition","top-left"); //倒计时位置具左上角/右上角/左下角/右下角
so.addVariable("JcScpCountDowns","4"); //广告倒计时
so.addVariable("JcScpAFrontW","520"); // 前置广告宽度
so.addVariable("JcScpAFrontH","325"); // 前置广告高度
so.addVariable("JcScpAFrontPath","Images/SevenColorPlayer_650x418.swf"); //广告地址
so.addVariable("JcScpAFrontLink","http://yxp.163.com/act/20120214.html");//广告链接地址
......
so.write("CuPlayer");
</script>
例(4.6.1)-2:调用方式二 ( 使用[ 配置文件参数 ] 中的参数值 )
第1部分
//HTML代码参数
<script type="text/javascript" src="images/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/Player/Player.swf","ply","520","325","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/CuSunV4set.xml");
so.addVariable("JcScpVideoPath","http://vhotwsh.video.qq.com/flv/209/39/7DyThulBJia.mp4");
so.addVariable("JcScpImg","/Player/Images/flashChangfa2.jpg");
so.write("CuPlayer");
</script>
第2部分
//配置文件参数
......
<Flashvars_Set
JcScpServer =""
JcScpVideoPath = "http://mv.top100.cn/special_26851/Everytime.flv"
JcScpVideoPathHD = "http://mv.top100.cn/special_26851/Everytime.flv"
JcScpImg ="Images/flashChangfa2.jpg"
ShowJcScpAFront = "yes"
JcScpCountDowns = "10"
JcScpCountDownsPosition = "top-right"
JcScpAFrontW = "645"
JcScpAFrontH = "300"
JcScpAFrontPath = "Images/SevenColorPlayer_650x418.swf"
JcScpAFrontLink = "http://yxp.163.com/act/20120214.html"
例(4.6.1)-3:调用方式一 ( 随机广告调用示例:注意 )
//HTML代码参数
<script type="text/javascript" src="images/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/Player/Player.swf","ply","520","325","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/CuSunV4set.xml");
so.addVariable("JcScpVideoPath","http://demo.cuplayer.com/file/test.mp4");
so.addVariable("JcScpImg","/Player/Images/startpic..jpg");
......
//-前置广告-----------------------------
so.addVariable("ShowJcScpAFront","yes"); //是否显示前置广告
so.addVariable("JcScpCountDownsPosition","top-left"); //倒计时位置具左上角/右上角/左下角/右下角
so.addVariable("JcScpCountDowns","4"); //广告倒计时
so.addVariable("JcScpAFrontW","520"); // 前置广告宽度
so.addVariable("JcScpAFrontH","325"); // 前置广告高度
so.addVariable("JcScpAFrontPath","images/650x418.swf|images/a730x454_01.jpg"); //随机广告地址
so.addVariable("JcScpAFrontLink","http://www.baidu.com|http://www.sina.com.cn");//广告链接地址
......
so.write("CuPlayer");
</script>
例(4.6.1)-4:调用方式二 ( 使用[ 配置文件参数 ] 中的参数值 )
第1部分
//HTML代码参数
<script type="text/javascript" src="images/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/Player/Player.swf","ply","520","325","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/CuSunV4set.xml");
so.addVariable("JcScpVideoPath","http://vhotwsh.video.qq.com/flv/209/39/7DyThulBJia.mp4");
so.addVariable("JcScpImg","/Player/Images/flashChangfa2.jpg");
so.write("CuPlayer");
</script>
第2部分
//配置文件参数
......
<Flashvars_Set
JcScpServer =""
JcScpVideoPath = "http://mv.top100.cn/special_26851/Everytime.flv"
JcScpVideoPathHD = "http://mv.top100.cn/special_26851/Everytime.flv"
JcScpImg ="Images/flashChangfa2.jpg"
ShowJcScpAFront = "yes"
JcScpCountDowns = "10"
JcScpCountDownsPosition = "top-right"
JcScpAFrontW = "645"
JcScpAFrontH = "300"
JcScpAFrontPath = "images/650x418.swf|images/a730x454_01.jpg"
JcScpAFrontLink = "http://www.baidu.com|http://www.sina.com.cn"