<script type="text/javascript" src="/ckplayer/ckplayer.js" charset="utf-8"></script>
<div id="videoWrap"></div>
<script type="text/javascript">
showPlayer('{$play_url}','videoWrap')
function showPlayer(src, id){
//player
var flashvars={
f : '/ckplayer/m3u8.swf',
a : src,
c : 0,
s: 4,
lv:0//注意,如果是直播,需设置lv:1
};
var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
var video=[src];
CKobject.embed('/ckplayer/ckplayer.swf',id ,'ck-video','100%','373px',false, flashvars ,video, params);
}
</script>
最重要的是在调用视频服务器一定要有crossdomain.xml配置文件