ckplayer6.0可以播放優酷,土豆,樂視,KU6,56的視頻,支持開關燈,支持自動下一集,支持站外分享支持最后一集時調用精彩視頻推薦等。方法如下:
工具
ckplayer6.0
飛飛CMS程序
方法/步驟
1、下載ck播放器完整版并提取ckplayer6.0完整版/ckplayer文件上傳至網站根目錄;同時下載解析插件上傳/ckplayer上傳目錄
地址:
http://網址/bbs/forum.php?mod=viewthread&tid=874
修改ckplayer.xml路徑
其它他廣告等參數按需要自行修改
修改ckplayer.txt
{x->http://www.你的網址.com/ckplayer/ckplayer.xml}{h->4}{p->1}{s->2}{e->3}
其它按自己需要添加
修改share.xml分享路徑
{embed src="你的網址/ckplayer/ckplayer.swf" flashvars="[$share]" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" allowFullscreen="true" type="application/x-shockwave-flash"}{/embed}
你的網址/ckplayer/ckplayer.swf?[$share]
f,my_url,a
你的網址/ckplayer/share/
修改related.xml
這里是精彩視頻推薦;按你需要 按格式添加修改
2、修改飛飛程序
修改Lib/Conf/config.php,增加一個ckplayer播放器
按原格式增加一行'ckplayer'=> array('22','ckplayer播放器'),
桌面創建txt文本 打開并添加以下代碼后更名為ckplayer.js 并修改相關路徑 上傳至Public/player/目錄
以下代碼按自己需要修改var box = new LightBox('flashcontent');
function closelights(){//關燈
box.Show();
}
function openlights(){//開燈
box.Close();
}
function $Showhtml(){
player = '';
return player;
}
Player.Show();
if(Player.Second){
$$('buffer').style.height = Player.Height-39;
$$("buffer").style.display = "block";
setTimeout("Player.BufferHide();",Player.Second*1000);
}
function playerstop() {
if(parent.Player.NextWebPage){
this.location.href=parent.Player.NextWebPage;
}
}
修改模板文件Tpl/你的模板/Home/ pp_play.html
增加
開關燈js
注意:
打開ckplayer6.0完整版/js/ 上傳offlights.js到你需要的路徑目錄
并在
下增加
后臺添加video.php解析插件支持相關視頻,測試成功 教程結束 。
通過上面的教程大家可以整合成功播放視頻,在來看看分享,本站播放器跟站外調用分離
分離好處自己想吧!
3、多建立一個ckplayer.txt更名為v.tvt 本站播放使用相應的JS中player = '<embed type="application/x-shockwave-flash" src=你的網址/ckplayer/ckplayer.swf id="movie_player" name="movie_player" bgcolor="#FFFFFF" quality="high" allowfullscreen="true" flashvars="f=http://www.你的網址.com/ckplayer/video.php?url=[$pat]&h=4&a='+Player.Url+'&s=2&w=v.txt&my_url='+Player.NextWebPage+'" pluginspage="http://www.macromedia.com/go/getflashplayer" width="100%" height="'+Player.Height+'">';
v.tvt參數按你需要設置.4、修改share.xml分享
{embed src="你的網址/ckplayer/ckplayer.swf" flashvars="[$share]" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" allowFullscreen="true" type="application/x-shockwave-flash"}{/embed}
你的網址/ckplayer/ckplayer.swf?[$share]
f,a,s,my_url,h
你的網址/ckplayer/share/
ckplayer.txt你可以添加廣告 控制播放結束后動作等等。
新聞熱點
疑難解答