注意:大陆放不了,除非....
<?php/** * {"asset":{"hls":{"fix":{"2":["http://ewcdnsite01.nowe.com/session/09-50df576f120eb4a9e1f00b797ca7b/Content/HLS/LIVE/Channel(HLS_CH331)/Stream(02)/index.m3u8?token=dc5d9bfcac7962ac6ddc96951fcfee22_1654309965"],"1":["http://ewcdnsite01.nowe.com/session/09-50df576f120eb4a9e1f00b797ca7b/Content/HLS/LIVE/Channel(HLS_CH331)/Stream(01)/index.m3u8?token=51554368890c3d5892269490322699fe_1654309965"]},"adaptive":["http://ewcdnsite01.nowe.com/session/09-50df576f120eb4a9e1f00b797ca7b/Content/HLS/LIVE/Channel(HLS_CH331)/index.m3u8?token=3db16e19555c389b6e172d1fab6b5ae8_1654309965"]}},"serviceName":"FTA","responseCode":"SUCCESS","callerReferenceNo":"","serverReferenceNo":"[yvpvmappapi07]1654295565121","elapsedTime":149} */$id = isset($_GET['channelno'])?$_GET['channelno']:331;$bstrURL = 'https://d1jithvltpp1l1.cloudfront.net/getLiveURL?channelno='.$id.'&format=HLS';$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $bstrURL);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0" );curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$data = curl_exec($ch);//echo $data;exit;curl_close($ch);if(!$data){ exit;}$reArr = json_decode($data,true);if($reArr["responseCode"] != "SUCCESS"){ exit;}//print_r($reArr["asset"]["hls"]["fix"][2][0]);exit;//print_r($reArr["asset"]["hls"]["fix"][1][0]);exit;//print_r($reArr["asset"]["hls"]["adaptive"][0]);exit;header('location:'.$reArr["asset"]["hls"]["adaptive"][0]);
发帖注意事项
请勿胡乱发帖:https://www.right.com.cn/forum/thread-8307840-1-1.html
账户手机验证:https://www.right.com.cn/forum/home.php?mod=spacecp&ac=plugin&id=jzsjiale_sms:home
|