//打开视频播放器 function openVedioDiv(obj, adType) {
// 点击图片非按钮区域 if (!divFlag) {
...
loadVedio(srcImg,vedioWidth,vedioHeight);
}
sysTitleSetting("xxx"); }
function loadVedio(vedioPath,vedioWidth,vedioHeight) {
//添加视频播放器的div $("<div id='a1'></div>").appendTo($("#video"));
var flashvars = { // f:'1.flv', // f:'yapeinaifen.mp4', // f:'vedio001.3gp', f : vedioPath, // f:'C:/Documents and Settings/003383/桌面/Test/yapeinaifen.mp4', c : 0, b : 1, p : 1 };
var params = { bgcolor : '#FFF', allowFullScreen : true, allowScriptAccess : 'always' };
CKobject.embedSWF('ckplayer/ckplayer.swf', 'a1', 'ckplayer_a1', vedioWidth, vedioHeight, flashvars, params); /* CKobject.embedSWF(播放器路径,容器id,播放器id/name,播放器宽,播放器高,flashvars的值,其它定义也可省略); 下面三行是调用html5播放器用到的 */
var video = [ vedioPath + '->video/mp4' ]; var support = [ 'iPad', 'iPhone', 'ios', 'android+false', 'msie10+false', 'webKit' ];
CKobject.embedHTML5('video', 'ckplayer_a1', vedioWidth, vedioHeight, video, flashvars, support); }
|
|