在线客服QQ: 176797520 极酷FlvPlayer在线客服 酷播网页视频播放器

4.8 高清模式



高清弹出小窗效果 (高清地址JcScpVideoPathHD不为空时)


高清弹出小窗效果(高清地址JcScpVideoPathHD为空时)

高清模式:
实现普通视频/高清视频之间的切换;
高清模式,有两种情况:
① 当用户有高清地址JcScpVideoPathHD不为空时,将会显示“默认”和"高清"两个选项;
②当用户有高清地址JcScpVideoPathHD为空时,将会只显示“默认”选项,并提示播放器目前暂未开启高清视频功能;
例(4.8)-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/CuSunV2Set.xml");
so.addVariable("JcScpVideoPath","http://vhotwsh.video.qq.com/flv/209/39/7DyThulBJia.mp4");
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:调用方式二

//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/CuSunV2Set.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>

//配置文件参数
......
<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"
......