首页 > 代码库 > ckplayer

ckplayer

html:        <div class="col-md-12 " id="fsUploadProgress">        <div>娇嫩的花.mp4: <div id=‘player1‘></div><script type="text/javascript">  var flashvars={    f:‘/ckplayer/m3u8.swf‘,    p:0,    //a:‘链接‘,    c:0,    s:2,    lv:0,    b:0  };  var params={bgcolor:‘#FFF‘,allowFullScreen:true,allowScriptAccess:‘always‘,wmode:‘transparent‘};  var video=[‘链接->video/m3u8‘];var isiPad = navigator.userAgent.match(/iPad|iPhone|Linux|Android|iPod/i) != null;    if (isiPad) {        document.getElementById(‘player1‘).innerHTML = ‘<video src="http://www.mamicode.com/链接" controls="controls" autoplay="autoplay" width="100%" height="100%"></video>‘	}else{  CKobject.embed(‘/ckplayer/ckplayer.swf‘,‘player1‘,‘ckplayer_a1‘,‘100%‘,‘100%‘,false,flashvars,video);	}</script></div>

  

ckplayer