验证中...
Languages: PHP
Categories: 嵌入式开发
Latest update 2019-02-12 16:31
直播解析
Raw Copy
<?php
//error_reporting();
// 更多源码解析,
function axiba($url){
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$data=curl_exec($ch);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, '30');
return $data;
curl_close($ch);
}
$demo=axiba('https://m.zhanqi.tv/api/static/v2.1/room/domain/'.$_GET['id'].'.json');
preg_match('|yfrtmp","videoId":"(.*)","chatStatus"|', $demo,$id);
$url='http://alhls.cdn.zhanqi.tv/zqlive/'.$id[1].'.m3u8';
echo $url;
?>

Comment list( 0 )

You need to Sign in for post a comment

Help Search

Gitee_sixth 5th_float_left_close