飞飞CMS官方论坛
标题:
飞飞cms2.9整合云视链教程
[打印本页]
作者:
85384536@qq.com
时间:
2015-8-18 17:03
标题:
飞飞cms2.9整合云视链教程
飞飞cms2.9整合云视链教程
首先,我们以优酷调用为实例,其他资源可以参照优酷方案修改
修改Public\player2.9\目录下yuku.js
使用以下代码替换即可
function $Showhtml(){
player =
("<div id=\"playerCnt\"></div>");
document.writeln(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>");
document.writeln(" <style type=\"text/css\">");
document.writeln(" #playerCnt{width:680;height:480px;margin:0 auto;border:5px solid #000000;background-origin:content-box;background-size:cover;}");
document.writeln(" </style>");
document.writeln(" <link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.id31.com/Iva.css\">");
document.writeln("<script type=\"text/javascript\" src=\"http://www.id31.com/Iva.js\"></script>");
document.writeln("<script type=\"text/javascript\">");
document.writeln(" var ivaInstance = new Iva(\'playerCnt\', {");
document.writeln(" appkey: \'NJe9UKmo\',");
document.writeln(" video: \'http://player.youku.com/embed/'+Player.Url+'.html',");
document.writeln(" type: 0,");
document.writeln(" title: \'videojj\',");
document.writeln(" cover: \'http://videojj.com/asset/first-title.png\',");
document.writeln(" logoPosition: \'right\',");
document.writeln(" autoplay: true");
document.writeln(" });");
document.writeln("</script>");
return player;
}
Player.Show();
if(Player.Second){
$$('buffer').style.height = Player.Height-35;
$$("buffer").style.display = "block";
setTimeout("Player.BufferHide();",Player.Second*1000);
}
注:如果后台采集为网址模式,请删除红色部分
云视链有640乘以480分辨率限制,低于此分辨率就会自动调整为弹出播放,修改方法为修改iva.js本地化,使用dw打开查找640即可找到参数,修改的低些就可以了,我修改为180
此教材为 爱动漫 www.id31.com 提供,转载请注明出处!
作者:
1096224934
时间:
2015-8-20 14:06
谢谢!
欢迎光临 飞飞CMS官方论坛 (http://ffcms.cn/)
Powered by Discuz! X3.2