联系官方销售客服
1835022288
028-61286886
<script type="text/javascript" src="/api/ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
var isNumber={$forfree};//定义开关
var flashvars={
f:'{dr_get_video_url($video)}',
c:0,
p:0,
g:{$_REQUEST['pointtime']},
//j:,
loaded:'loadedHandler'
};
var video=['{dr_get_video_url($video)}->video/mp4'];
CKobject.embed('/api/ckplayer/ckplayer.swf','video','ckplayer_a1','100%','480',false,flashvars,video)//
function loadedHandler(){
CKobject.getObjectById('ckplayer_a1').addListener('time','timeHandler');
}
function timeHandler(t){
if(t>{dr_var("videofreetime")} && !isNumber){
CKobject.getObjectById('ckplayer_a1').videoPause();
//CKobject.getObjectById('ckplayer_a1').removeListener('time','timeHandler');
//isNumber=false;
alert('付费后收看完整视频');
CKobject.getObjectById('ckplayer_a1').videoSeek(0);
CKobject.getObjectById('ckplayer_a1').videoPause();
}
}
</script>