V4关于CK播放器不能播放的解决方法

浏览:6177 发布日期:2016/01/29 分类:安装使用 关键字: ck 视频播放
2016-01-30 以后下载安装的可以忽略。
打开 ./packs/vod_player/ckplayer.html

var flashvars={
f:unescape(parent.url),
c:0,
b:1,
loaded:'loadedHandler'
};
var video=[unescape(parent.url)];
CKobject.embed('ckplayer/ckplayer.swf','a1','ckplayer_a1','100%',parent.height,true,flashvars,video);

替换成
var flashvars={
f:unescape(parent.url),
c:0,//调用ckplayers.js
p:1,//默认播放
b:1//是否允许js和播放器交互
};
var params={bgcolor:'#000',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
var isiPad = navigator.userAgent.match(/iPad|iPhone|Linux|Android|iPod/i) != null;
if (isiPad) {
document.getElementById('a1').innerHTML = '<video src="'+unescape(parent.url)+'" controls="controls" autoplay="autoplay" width="'+parent.width+'" height="'+parent.height+'"></video>'
} else {
CKobject.embedSWF('ckplayer/ckplayer.swf','a1','ckplayer_a1','100%',parent.height,flashvars,params);
}


即可
评论(0 相关
后面还有0条评论,点击查看>>