配置文件参数:在本播放器中特指,写在xml,asp,php,aspx(例如:CuSunV4set.xml / CuSunV3Set.php / CuSunV3Set.asp等)等配置文件中的参数,它的参数更加丰富,并且是包含了所 有[ HTML代码参数 ]。配置文件参数分五个部分:
1. [ 播放器常规初始化设置参数 ]
2. [ 播放器Logo设置参数 ]
3. [ 播放器Flashvars参数 ( 即包含的HTML代码参数) ]
4. [ 滚动文字广告参数 ]
5. [ 结束推荐列表图片组参数 ]
本播放器提供独创的 双重参数 机制,即[ html代码参数 ] 和 [ 配置文件参数 ]。提示一下,用户理解好 双重参数机制 对于本播放器来说相当重要。如何灵活的使用这两种参数,请详细参见 [ 灵活的使用参数 ]。
参数名称 | 数据类型 | 参数描述 | 备注 |
播放器常规设置参数 | |||
JcScpBufferTime | Number | 缓冲时间 | 秒 |
JcScpVolume | Number | 音量调节 | |
JcScpAutoRepeat | String | 是否循环播放 | yes/no |
JcScpImgDisplay | String | 是否显示图片 | yes/no |
JcScpAutoHideControl | String | 是否自动隐藏控制条 | yes/no |
JcScpControlHideTime | Number | 隐藏时间值 | 值为0.0 - 5.0 |
JcScpControlHeight | Number | 控制条高度 | |
JcScpShowList | String | 视频结束动作控制 | yes/no/next/showad |
JcScpsetMode | Number | 视频初始播放模式 | 值为1 / 2 / 3 / 4 分别对应 默认等比模式/铺满拉伸/4:3/16:9 |
JcScpCode | String | 播放器编码 | gb2312/utf8 |
JcScpAFrontCanClose | String | 是否允许关闭前置广告 | yes/no |
JcScpShowRightmenu | String | 是否开启右侧菜单 | yes/no |
JcScpShareMode | String | 分享模式控制 | JcScpVideoPath/FlvID |
JcScpLoadbarMode | String | 进度条模式控制 | 值为0和1,0表示允许拖动,1为禁拖动进度条 |
JcScpLiveMode | String | 点播模式/直播模式控制 | 值为0和1,0表示点播,1表示直播模式隐藏进度条 |
播放器Logo设置参数 [ 播放器logo设定详情参见>> ] | |||
JcScpLogoDisplay | String | 是否显示Logo图标 | yes/no |
JcScpLogoPath | String | Logo地址 | |
JcScpLogoPosition | String | Logo位置 | top-right/top-left/bottom-left/bottom-right |
JcScpLogoWidth | Number | Logo宽度 | |
JcScpLogoHeight | Number | Logo高度 | |
JcScpLogoAlpha | Number | Logo透明度 | 值为0.0 - 1.0 |
播放器设文件中Flashvars参数 ( 注:以下参数可与 [ HTML代码参数 ] 中的参数互换 ) 详情参见>> | |||
JcScpAutoPlay | String | 是否自动播放 | yes/no |
JcScpServer | String | 服务器地址 | 注:流媒体服务器RTMP环境下启用;默认为空 |
JcScpVideoPath | String | 视频地址 | 支持 flv/mp4/mov/f4v/3gp 格式 |
JcScpVideoPathHD | String | 视频地址[高清地址] | 支持 flv/mp4/mov/f4v/3gp 格式 |
JcScpImg | String | 视频图片 | |
JcScpStarTime | Number | 起始时间点 | (提示:参数预留,暂未启用) |
JcScpEndTime | Number | 视频结束时间点 | |
JcScpCuePointInfo | Array | 提示点信息 | 多个提示点,请用 | 分隔 |
JcScpCuePointTime | Array | 提示点秒数值 | 多个提示点,请用 | 分隔 |
ShowJcScpAFront | String | 是否显示前置广告 | yes/no |
JcScpCountDownsPosition | String | 广告倒计时位置 | top-left/top-right/bottom-left/bottom-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 |
ShowJcScpAVideo | String | 是否显示前置视频广告 | yes/no |
JcScpAVideoServer | String | 服务器地址 | 注:流媒体服务器RTMP环境下启用;默认为空 |
JcScpAVideoPath | String | 前置视频广告地址 | 支持 flv/mp4/mov/f4v/3gp 格式 |
JcScpAVideoLink | String | 前置视频广告链接 | |
ShowJcScpAPause | String | 是否显示暂停广告 | yes/no |
JcScpAPausePath | String | 暂停广告地址 | 支持 swf/jpg/png/gif 格式 |
JcScpAPauseW | Number | 暂停广告宽度 | |
JcScpAPauseH | Number | 暂停广告高度 | |
JcScpAPauseLink | String | 暂停广告链接 | |
ShowJcScpACorner | String | 是否显示角标广告 | yes/no |
JcScpACornerPath | String | 角标广告地址 | 支持 swf/jpg/png/gif 格式 |
JcScpACornerW | Number | 角标广告宽度 | |
JcScpACornerH | Number | 角标广告高度 | |
JcScpACornerPosition | String | 角标广告位置 | top-right/top-left/bottom-left/bottom-right |
JcScpACornerLink | String | 角标广告链接 | |
ShowJcScpAEnd | String | 是否显示后置Flash广告 | yes/no |
JcScpAEndPath | String | 后置Flash广告地址 | 支持 swf/jpg/png/gif 格式 |
JcScpAEndW | Number | 后置Flash广告宽度 | |
JcScpAEndH | Number | 后置Flash广告高度 | |
JcScpAEndLink | String | 后置Flash广告链接 | |
ShowJcScpAMoveText | String | 是否显示滚动文字广告 | yes/no |
JcScpSharetitle | String | 分享信息内容 | |
播放器控制条色彩代码 | |||
JcScpBackcolor | uint | 主背景色 | |
JcScpBackcolortop | uint | 主背景渐变色 |
由上至下的渐变色 |
JcScpLightcolor | uint | 浅色 |
音量,全屏按钮 |
JcScpFontcolor | uint | 字体色彩 | |
JcScptimebg | uint | 时间背景色 | |
JcScpLoadbar | uint | 当前播放进度条 |
|
JcScpLoaded | uint | 已加载缓冲进度条 |
|
JcScpLoadbg | uint | 未加载的进度条 |
|
JcScpPlayBtn | uint | 播放按钮背景 | |
JcScpBar | uint | 进度条移动按钮 | |
结束推荐列表图片组 | |||
filename | String | 图片地址 | |
title | String | 标题内容 | |
url | String | 链接地址 | |
target | String | 打开方式 | _blank/_parent/_self/_top |
例(2.2)-1:配置文件参数范例
<CuPlayer>
<Player_Set
JcScpBufferTime = "5"
JcScpVolume = "75"
JcScpCode = "utf8"
JcScpImgDisplay = "no"
JcScpAutoHideControl ="yes"
JcScpControlHideTime="0.5"
JcScpControlHeight="40"
JcScpShowList= "yes"
JcScpAutoRepeat = "no"
JcScpsetMode = "1"
JcScpAFrontCanClose = "no"
JcScpShowRightmenu = "yes"
JcScpShareMode = "JcScpVideoPath"
JcScpLoadbarMode = "0"
JcScpLiveMode = "0"
/>
<Logo_Set
JcScpLogoDisplay = "yes"
JcScpLogoPath = "images/logo.png"
JcScpLogoPosition = "top-left"
JcScpLogoWidth = "165"
JcScpLogoHeight = "75"
JcScpLogoAlpha = "1"
/>
<Flashvars_Set
JcScpServer =""
JcScpVideoPath = ""
JcScpVideoPathHD = ""
JcScpImg ="images/startpic.jpg"
JcScpAutoPlay = "yes"
JcScpStarTime = "0"
JcScpEndTime = "0"
JcScpCuePointInfo = "开始点|考题开始|结束点"
JcScpCuePointTime = "50|110|150"
ShowJcScpAFront = "yes"
JcScpCountDownsPosition = "top-right"
JcScpCountDowns = "5"
JcScpAFrontW = "650"
JcScpAFrontH = "418"
JcScpAFrontPath = "images/a650x418.swf"
JcScpAFrontLink = "http://demo.cuplayer.com/CuSunPlayer/demo1.html"
ShowJcScpAVideo = "no"
JcScpAVideoServer = ""
JcScpAVideoPath = "up.flv"
JcScpAVideoLink = "http://demo.cuplayer.com/CuSunPlayer/demo2.html"
ShowJcScpAPause = "yes"
JcScpAPauseW = "300"
JcScpAPauseH = "250"
JcScpAPausePath = "images/a300x250.swf"
JcScpAPauseLink= "http://demo.cuplayer.com/CuSunPlayer/demo3.html"
ShowJcScpACorner = "yes"
JcScpACornerW = "80"
JcScpACornerH = "50"
JcScpACornerPath = "images/a370x250.swf"
JcScpACornerPosition = "top-right"
JcScpACornerLink = "http://demo.cuplayer.com/CuSunPlayer/demo4.html"
ShowJcScpAEnd = "no"
JcScpAEndW = "400"
JcScpAEndH = "300"
JcScpAEndPath = "images/a400x300.swf"
JcScpAEndLink = "http://demo.cuplayer.com/CuSunPlayer/demo5.html"
ShowJcScpAMoveText = "yes"
JcScpSharetitle = "标题信息"
/>
<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>
<thumbnail>
<filename>pic/pic01.jpg</filename>
<title>1中国品牌手机厂商崛起三星业绩下滑</title>
<url>cusunplayer231.html</url>
<target>_parent</target>
</thumbnail>
<thumbnail>
<filename>pic/pic02.jpg</filename>
<title>2中国联通双4G领先计划高端峰会</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer232.html</url>
<target>_blank</target>
</thumbnail>
<thumbnail>
<filename>pic/pic03.jpg</filename>
<title>3电动汽车配套设施称烫手山芋</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer233.html</url>
<target>_self</target>
</thumbnail>
<thumbnail>
<filename>pic/pic04.jpg</filename>
<title>4腾讯开放平台将连接智能硬件</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer234.html</url>
<target>_blank</target>
</thumbnail>
<thumbnail>
<filename>pic/pic05.jpg</filename>
<title>5微软再裁员3000大裁员计划完成</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer235.html</url>
<target>_self</target>
</thumbnail>
<thumbnail>
<filename>pic/pic06.jpg</filename>
<title>6阿里巴巴双十一商标杀伤力</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer236.html</url>
<target>_parent</target>
</thumbnail>
<thumbnail>
<filename>pic/pic03.jpg</filename>
<title>7电动汽车配套设施称烫手山芋</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer237.html</url>
<target>_self</target>
</thumbnail>
<thumbnail>
<filename>pic/pic04.jpg</filename>
<title>8腾讯开放平台将连接智能硬件</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer238.html</url>
<target>_blank</target>
</thumbnail>
<thumbnail>
<filename>pic/pic05.jpg</filename>
<title>9微软再裁员3000大裁员计划完成</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer239.html</url>
<target>_self</target>
</thumbnail>
<thumbnail>
<filename>pic/pic06.jpg</filename>
<title>10阿里巴巴双十一商标杀伤力</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer210.html</url>
<target>_parent</target>
</thumbnail>
<thumbnail>
<filename>pic/pic06.jpg</filename>
<title>11阿111巴巴双十一商标杀伤力</title>
<url>http://demo.cuplayer.com/player/CuSunPlayerV1/cusunplayer211.html</url>
<target>_parent</target>
</thumbnail>