欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

ckplayer 只调用flash播放器

shiping1 的头像
只调用flash播放器
<div id="a1"></div>
<script type="text/javascript" src="ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
    var flashvars={
        f:'http://movie.ks.js.cn/flv/other/1_0.flv',
        c:0,
        b:1
    };
    var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
    CKobject.embedSWF('ckplayer/ckplayer.swf','a1','ckplayer_a1','600','400',flashvars,params); 
</script>
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
HTML

CKobject.embedSWF('flash播放器路径',

'放置播放器的容器ID',

'播放器的ID',

'宽度,支持百分比',

'高度,支持百分比',

flashvars对象,初始化播放器参数,

相关的配置,如:背景色,是否允许全屏,是否允许交互,播放器是否透明

);

来自 http://www.ckplayer.com/tool/help/12.htm


普通分类: