|
now新闻,http://live.cooltv.top/tv/now.php?id=332now财*,http://live.cooltv.top/tv/now.php?id=333
now直播台,http://live.cooltv.top/tv/now.php?id=331
动态分辨率,根据使用者网速自动调节分辨率。有哪位兄弟知道如何强制跳转到最高分辨率吗?
- <?php
- $id=$_GET["id"];
- $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_HTTPHEADER, $header);
- $data = curl_exec($ch);
- curl_close($ch);
- $reArr = json_decode($data,true);
- header('location:'.$reArr["asset"]["hls"]["adaptive"][0]);
复制代码
|
|