rockboy
发表于 2025-4-15 20:21:02
测试测试,学习学习
aallsskkgg
发表于 2025-4-15 20:21:47
礼貌回贴是一种美德,也是对发贴者的尊重。请不要做不良言论的导火索。
zhouying82
发表于 2025-4-15 22:13:16
那就这样了
zhouying82
发表于 2025-4-16 21:57:45
看看过大老爷的东西
sxiptv
发表于 2025-4-17 00:05:05
谢谢楼主的分享
pingbo888
发表于 2025-4-28 20:38:42
<?php
//https://www.yntv.cn/live.html
error_reporting(0);
//https://www.yntv.cn/mobile/index.html
$id = isset($_GET["id"])?$_GET["id"]:"ynws";
$n = [
"ynws" => "yunnanweishi", //云南卫视
"ynds" => "yunnandushi", //云南都市
"ynyl" => "yunnanyule", //云南娱乐
"ynkl" => "yunnangonggong", //康旅频道
"yngj" => "yunnanguoji", //澜湄国际
"ynse" => "yunnanshaoer", //云南少儿
];
$url = "https://api.yntv.ynradio.com/index/jmd/getRq?name=".$n[$id];
$burl = "https://tvlive.yntv.cn";
$d = json_decode(get($url),1);
$live = $burl.$d['url']."?wsSecret=".$d['string']."&wsTime=".$d['time'];
$php = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
$buri = "https://tvlive.yntv.cn/live/{$n[$id]}/";
$ts = $_GET['ts'];
if(!$ts) {
header('Content-Type: application/vnd.apple.mpegurl');
print_r(preg_replace("/(.*?.ts)/i",$php."?ts=$buri$1",get(trim($live))));
} else {
$data = get(trim($ts));
header('Content-Type: video/MP2T');
echo $data;
}
function get($url){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_REFERER, 'https://www.yntv.cn/');
curl_setopt($ch, CURLOPT_HTTPHEADER,['User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36']);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}
?>
hk8888
发表于 前天 00:25
看看什么样的
574946793
发表于 前天 08:43
看看好东西
qq895833574
发表于 前天 10:00
看看什么样的
dong888
发表于 前天 16:54
线路代理源码 [
czwy666
发表于 前天 16:56
DALAOdalao 大佬