视频广告

 

 

 

视频广告:
视频播放之前,加载显示的一段带倒计时的视频广告;
支持flv,mp4,mov,f4v,3gp文件格式,均可以添加广告链接地址。

 

参数名称 数据类型 参数描述 备注
视频广告 功能相关的参数
ShowJcScpAVideo String 是否显示视频广告 yes/no
JcScpAVideoServer String 服务器地址  注:流媒体服务器RTMP环境下启用;默认为空
JcScpAVideoPath String 前置视频广告地址 支持 flv/mp4/mov/f4v/3gp 格式
JcScpAVideoLink String 前置视频广告链接  


关于随机广告提示说明:
本播放器支持设定一组广告链接,每次随机显示其中一个广告。参数传值写法很简单,就是以"|"分隔即可,flv,mp4,mov,f4v,3gp文件格式都可以。例:

http://demo.cuplayer.com/file/ad1.mp4|http://demo.cuplayer.com/file/ad2.mp4

[ HTML参数代码 ]调用参考:

so.addVariable("JcScpAVideoPath","/file/ad1.mp4|/file/ad2.mp4"); //随机广告地址
so.addVariable("JcScpAVideoLink","http://www.baidu.com|http://www.sina.com.cn");//广告链接地址

[ 配置文件代码 ]调用参考:

JcScpAVideoPath = "/file/ad1.mp4|/file/ad2.mp4"
JcScpAVideoLink = "http://www.baidu.com|http://www.sina.com.cn"

........

 

例(4.6.2)-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/CuSunV3Set.xml");
so.addVariable("JcScpVideoPath","http://vhotwsh.video.qq.com/flv/209/39/7DyThulBJia.mp4");
so.addVariable("JcScpImg","/Player/Images/flashChangfa2.jpg");
......
//-视频广告-----------------------------
so.addVariable("ShowJcScpAVideo","yes");//是否显示视频广告
//so.addVariable("JcScpAVideoServer","yes");//注:流媒体服务器RTMP环境下启用;默认为空
so.addVariable("JcScpAVideoPath","http://www.roewe.com.cn/download/video/1.flv"); //广告地址
so.addVariable("JcScpAVideoLink","http://yxp.163.com/act/20120214.html");//广告链接地址
......
so.write("CuPlayer");
</script>

 

例(4.6.2)-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/CuSunV3Set.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"
......
ShowJcScpAVideo = "yes"
JcScpAVideoServer = ""
JcScpAVideoPath = "http://www.roewe.com.cn/download/video/1.flv"
JcScpAVideoLink = "http://yxp.163.com/act/20120214.html"
......