|
本帖最后由 EScZkc_1d8 于 2022-10-25 15:56 编辑
这样改了以后可以在H5播放器(CKPLAYER DPLAYER)上播放(显示stream no found的除外),但是无法在POTPLAYER 黑鸟上播放,原因不明……
- <?php
- $id = $_GET['id'];
- $n = [
- 'cctv1' => ['cctv1','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'cctv2' => ['cctv2','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv7' => ['cctv7','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv9' => ['cctv9','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv10' => ['cctv10','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv11' => ['cctv11','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv12' => ['cctv12','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv13' => ['cctv13','https://bdrmtvzb.lnyun.com.cn/bdrm//'],
- 'cctv14' => ['cctv14','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv15' => ['cctv15','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'cctv17' => ['cctv17','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'lnws' => ['lnws','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnty' => ['lnty','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnds' => ['lnds','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnysj' => ['lnys','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnyjgw' => ['lngw','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnjyqs' => ['lnjy','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnsh' => ['lnsh','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnbf' => ['lnbf','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lnyd' => ['lnyd','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'jtlc' => ['jtlc','https://bdrmtvzb-1.lnyun.com.cn/bdrm/'],
- 'yxjj' => ['yxjj','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'xdm' => ['xdm','https://bdrmtvzb.lnyun.com.cn/bdrm/'],
- 'lyxwzh' => ['lnlytv1','https://lyszb1.lnyun.com.cn/lysrm/'],
- 'lygg' => ['lnlytv2','https://lyszb1.lnyun.com.cn/lysrm/'],
- 'cyxwzh' => ['lncytv1','https://cyszb1.lnyun.com.cn/cysrm/'],
- 'cyjy' => ['lncytv2','https://cyszb1.lnyun.com.cn/cysrm8/'],
- 'gzzh' => ['lnykgz1','https://gzzb2.lnyun.com.cn/gzrm/'],//盖州综合
- 'fkxw' => ['lnsyfk1','https://fkzb1.lnyun.com.cn/fkrm/'],//法库新闻
- 'kpzh' => ['lnsykp1','https://kpzb2.lnyun.com.cn/kprm/'],//康平综合
- 'xmsz' => ['lnsyxm1','https://xmzb4.lnyun.com.cn/xmrm/'],//新民时政
- 'szzh' => ['lnhldsz1','http://szzb1.lnyun.com.cn/szrm/'],//绥中综合
- 'xczh' => ['lnhldxc1','https://xczb2.lnyun.com.cn/xcrm/'],//兴城综合
- 'zwzh' => ['lnfxzw1','http://zwzb1.lnyun.com.cn/zwrm/'],//彰武综合
- 'ctzh' => ['lntlct1','https://ctzb2.lnyun.com.cn/ctrm1/'],//昌图综合
- 'kyzh' => ['lntlky1','http://kyzb1.lnyun.com.cn/kyrm/'],//开原综合
- 'qhzh' => ['lntlqh1','https://qhzb1.lnyun.com.cn/qhrm/'],//清河区综合
- 'tlxxw' => ['lntltl2','http://tlzb3.lnyun.com.cn/tlrm/'],//铁岭县新闻
- 'xfzh' => ['lntlxf1','http://xfzb1.lnyun.com.cn/xfrm/'],//西丰综合
- 'dbszh' => ['lntldbs1','https://diaobingshanzb2.lnyun.com.cn/dbsrm/'],//调兵山综合
- 'wfdxwzh' => ['lndlwfd1','http://wfdzb1.lnyun.com.cn/wfdrm/'],//瓦房店新闻综合
- 'bpxwzh' => ['lncybp1','https://bpzb1.lnyun.com.cn/bprm/'],//北票新闻综合
- 'cyxzh' => ['lncycy1','https://cyxzb3.lnyun.com.cn/cyxrm/'],//朝阳县综合
- 'lyxwzh' => ['lncyly1','https://lyzb5.lnyun.com.cn/lyrm/'],//凌源新闻综合
- 'lyggys' => ['lncyly2','https://lyzb4.lnyun.com.cn/lyrm/'],//凌源公共影视
- 'dgzh' => ['lndddg1','https://dgzb5.lnyun.com.cn/dgrm/'],//东港综合
- 'dgxdg' => ['lndddg2','https://dgzb4.lnyun.com.cn/dgrm/'],//东港新东港
- 'kdzh' => ['lnddkd1','https://kdzb1.lnyun.com.cn/kdrm/'],//宽甸综合
- 'qyzh' => ['lnfsqy1','http://qyzb1.lnyun.com.cn/qyrm/'],//清原综合
- 'xbzh' => ['lnfsxb1','http://xbzb1.lnyun.com.cn/xbrm/'],//新宾综合
- ];
- if ($id){
- $d = file_get_contents('http://v2.91kds.cn/b9/lnyun.m3u8?id='.$n[$id][0].'&auth=rinimabi');
- $str = preg_replace('/@/','',$d);
- $m3u8 = preg_split('/Referer=/',$str)[0];
- $r = preg_split('/Referer=/',$str)[1];
- print_r(preg_replace("/(.*?.ts.*)/i","lnyun1.php?ts=".$n[$id][1]."$1&r=$r",getdata($m3u8,$r)));
- }
- if ($_GET['ts']){
- echo getdata($_GET['ts'],$_GET['r']);
- }
- function getdata($url,$ref){
- $cm = curl_init($url);
- curl_setopt($cm, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($cm, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt($cm, CURLOPT_SSL_VERIFYHOST, FALSE);
- curl_setopt($cm, CURLOPT_REFERER, $ref);
- $p = curl_exec($cm);
- curl_close($cm);
- return $p;
- }
- ?>
复制代码
|
|