简介
此播放器没有任何加密,适配苹果cms,需要修改cms,把播放链接加密,然后播放器解析时会先解密后解析,理论上不用担心被盗用,不过需要一定的动手能力。
电脑端使用的Artplayer,手机端使用的 Muiplayer
使用方法
将源码上传服务器即可使用,调用方式:域名/?url=
截图展示
安装教程
关于cms修改方法: 手动修改,需要修改的文件在cms源码application/common/controller/All.php,进入文件后搜 label_vod_play,在代码
if(substr($player_info['url'],0,6) == 'upload'){
$player_info['url'] = MAC_PATH . $player_info['url'];
}
if(substr($player_info['url_next'],0,6) == 'upload'){
$player_info['url_next'] = MAC_PATH . $player_info['url_next'];
}
下面加上
function myencode($data) {
$key = '1cf4601b2451f5bc3bc8cdd8d3a07839';
$iv = '9fa428a5fc1c4d08';
$endata = base64_encode(openssl_encrypt($data, 'aes-128-cbc', $key,1,$iv));
$endata = bin2hex($endata);
return $endata;
}
$time = time();
$player_info['url'] = myencode($time . '|' . $player_info['url']);
$player_info['url_next'] = myencode($time . '|' . $player_info['url_next']);
即可,key和iv需要网页播放器内的一致。
评论 0
登录后可发表评论