咸阳台能弄吗,大佬些
看咸阳app能看,网页播放没有key看不了https://kanxianyang.com/a/b/e/live_wap_72930.html?site=53<?php
$id = $_GET['id'];
$n = [
'xyzh' => '157309', //咸阳综合
'xygg' => '157314' //咸阳公共
];
$url = "https://api.juyun.tv/juxian/api/is_pay_tv.jsp?id=$n[$id]&callback=jQuery35006271890432422886_1724920996159&_=1724920996160";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$response = curl_exec($ch);
curl_close($ch);
$start = strpos($response, '(') + 1;
$end = strrpos($response, ')');
$jsonPart = substr($response, $start, $end - $start);
$data = json_decode($jsonPart, true);
if (json_last_error() === JSON_ERROR_NONE) {
if (isset($data['address'])) {
$liveUrl = 'https:' . $data['address'];
// echo $liveUrl;
header("Location: " . $liveUrl);
}
}
?> xytv.php
<?php
error_reporting(0);
$id = isset($_GET['id'])?$_GET['id']:'xyzh';
$n=[
'xyzh'=> 157309, //咸阳综合
'xygg'=> 157314, //咸阳公共
];
$d = file_get_contents("http://api.juyun.tv/juxian/api/is_pay_tv.jsp?id=".$n[$id]);
preg_match('/"address":"(.*?)"/',$d,$p);
$playurl = "http:".$p;
header('location:'.$playurl);
//echo $playurl;
?> https://player24.juyun.tv/camera/157314173.m3u8似乎不能播 https://kanxianyang.com/station/xyyt/index.shtmlpc网页的能看 官网:
咸阳综合:http://www.xybtv.com/station/xyyt/index.shtml
咸阳公共:http://www.xybtv.com/station/xyst/index.shtml guoma 发表于 2024-8-29 17:44
xytv.php
抓包,没抓到这个接口 @guoma这个云还有哪些地方台电视 guoma 发表于 2024-8-29 17:43
官网:
咸阳综合:http://www.xybtv.com/station/xyyt/index.shtml
咸阳公共:http://www.xybtv.com/statio ...
在官网找到接口了 hellotv 发表于 2024-8-29 19:28
@guoma这个云还有哪些地方台电视
到首页,看最下面:麻麻视听、麻麻TV手机版
页:
[1]