高清模式

 

 

高清模式:
实现普通视频/高清视频之间的切换;
高清模式,有两种情况:
① 当用户有高清地址JcScpVideoPathHD不为空时,将会显示“默认”和"高清"两个选项;
②当用户有高清地址JcScpVideoPathHD为空时,将会只显示“默认”选项,并提示播放器目前暂未开启高清视频功能。


例(4.6.3)-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("JcScpImg","/Player/Images/flashChangfa2.jpg");
so.addVariable("JcScpVideoPath","http://www.abc.com/uploadfile/vedio/km.flv");
so.addVariable("JcScpVideoPathHD","http://www.abc.com/uploadfile/vedio/km.mp4");
so.write("CuPlayer");
</script>

 

例(4.8)-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("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"
......