网页视频播放器加载中,请稍后...点此升级>>
酷播Base64加密版(V4.0)
提示:酷播混淆加密版是基于酷播V4.0产品制作的,用key对视频地址进行混淆加密,再用key进行解密,最终实现视频的播放,加密强度较弱,仅可对视频文件做最简单的防护,是完全免费的产品。

例1-1:PHP函数:base64_encode() 使用介绍

base64_encode
将字符串以 BASE64 编码。
语法: string base64_encode(string data);
返回值: 字符串
范例:
<?php
$str = 'http://promotion.geely.com/gc9/video/launch.mp4';
echo base64_encode($str);
?>
此示例将显示:
aHR0cDovL3Byb21vdGlvbi5nZWVseS5jb20vZ2M5L3ZpZGVvL2xhdW5jaC5tcDQ=

例1-2:PHP调用示范

// test.php 调用范例
<!--酷播播放器/代码开始-->
<?php
$str = 'http://promotion.geely.com/gc9/video/launch.mp4';
?>
<script type="text/javascript" src="/Cu/Encrypt/B/js/swfobject.js"></script>
<div class="video" id="CuPlayer" style="width:980px; height:510px;"><b><img src="/Cu/Encrypt/images/loading.gif" /> 网页视频播放器加载中,请稍后...<a href="http://www.cuplayer.com/cuplayer" target="_blank">点此升级&gt;&gt;</a></b></div>
<script type="text/javascript">
var so = new SWFObject("/Cu/Encrypt/B/player.swf","myCuPlayer","980","495","9","#000000");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addParam("quality","high");
so.addParam("salign","lt");
//播放器配置文件-----------------------------
so.addVariable("JcScpFile","/Cu/Encrypt/B/CuSunV4set.xml"); //配置文件地址
//视频文件及略缩图--------------------------
so.addVariable("JcScpVideoPath","<?php echo base64_encode($str); ?>"); //视频地址
so.addVariable("JcScpImg","images/startpic.jpg"); //视频图片
so.addVariable("JcScpAutoPlay","yes"); //是否自动播放
so.write("CuPlayer");
</script>
<script language=javascript src="/Cu/Encrypt/B/js/jquery-1.4.2.min.js" type=text/javascript></script>
<script language=javascript src="/Cu/Encrypt/B/js/action.js" type=text/javascript></script>
<!--酷播播放器/代码结束-->

 

例1-3:ASPX调用示范

整理中...

 

例1-4:ASP调用示范

整理中...