|
压缩一下:
- <?php
- $d = getdata('https://profile.m1905.com/mvod/getliveinfo.php?nonce=1655970516&expiretime=1655971116&cid=999999&streamname=LIVEOCTI36HXJXB9U&uuid=9550c399-a684-4545-8a37-499bc22c9349&playerid=051619085160464&page=https%3A%2F%2Fm.1905.com%2Fm%2Fcctv6%2Fgzh%2F%3Fhome&signature=6a1796f96c37bf6fefdf0d5ed2c538d7836336af&type=json');
- $sign = json_decode(trim($d,'()'))->data->sign->hd->sign;
- $playurl = 'https://hlslive.1905.com/live/LIVEOCTI36HXJXB9U/index.m3u8'.$sign;
- header('Location:'.$playurl);
- echo $playurl;
- function getdata($p){
- $ch = curl_init($p);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
- $r = curl_exec($ch);
- curl_close($ch);
- return $r;
- }
- ?>
复制代码
|
|