曾经逝去
发表于 2024-1-26 22:14:45
谢谢分享
kourou
发表于 2024-1-27 13:55:26
谢谢分享
高杰空间
发表于 2024-1-28 14:04:21
这个不错
zbx426
发表于 2024-1-28 21:20:41
谢谢楼主的分享
mustmax
发表于 2024-1-29 00:35:32
<?php
error_reporting(0);
date_default_timezone_set("Asia/Shanghai");
$id = $_GET['id'] ?? 'cctv1';
$n = [
'cctv1' => , //CCTV-1HD
'cctv1b' => , //CCTV-1HD2
'cctv2' => , //CCTV-2HD
'cctv3' => , //CCTV-3HD
'cctv4' => , //CCTV-4HD
'cctv4o' => , //CCTV-4欧洲
'cctv4a' => , //CCTV-4美洲
'cctv5' => , //CCTV-5HD
'cctv5b' => , //CCTV-5HD2
'cctv5p' => , //CCTV-5+HD
'cctv5p2' => , //CCTV-5+HD2
'cctv6' => , //CCTV-6HD
'cctv7' => , //CCTV-7HD
'cctv8' => , //CCTV-8HD
'cctv9' => , //CCTV-9HD
'cctv10' => , //CCTV-10HD
'cctv11' => , //CCTV-11HD
'cctv12' => , //CCTV-12HD
'cctv13' => , //CCTV-13HD
'cctv14' => , //CCTV-14HD
'cctv15' => , //CCTV-15HD
'cctv17' => , //CCTV-17HD
'cgtne' => , //CGTN西语
'cgtna' => , //CGTN阿语
'chcjtyy' => , //CHC家庭影院
'dfws' => , //东方卫视HD
'dfws2' => , //东方卫视HD2
'cqws' => , //重庆卫视
'jlws' => , //吉林卫视
'lnws' => , //辽宁卫视HD
'nmws' => , //内蒙古卫视
'nxws' => , //宁夏卫视
'gsws' => , //甘肃卫视
'qhws' => , //青海卫视
'jxws' => , //江西卫视HD
'sxwsb' => , //陕西卫视FHD
'sdws' => , //山东卫视HD
'hubws' => , //湖北卫视HD
'hunws' => , //湖南卫视HD
'jxws' => , //江西卫视HD
'jsws' => , //江苏卫视HD
'gdws' => , //广东卫视HD,
'gdws2' => , //广东卫视HD2,
'dwqws' => , //大湾区卫视
'xjws' => , //新疆卫视
'xzws' => , //西藏卫视
'hinws' => , //海南卫视
'lgs' => , //老故事SD
'zxs' => , //中学生HD
'fxzl' => , //发现之旅HD
'ssjd' => , //赛事最经典HD
'gdjys' => , //掼蛋精英赛HD
'yplus' => , //Y+$FHD
'shdy' => , //四海钓鱼
'jsjy' => , //江苏教育
'sdjy' => , //山东教育卫视
'yxfy' => , //游戏风云HD
'hxjc' => , //欢笑剧场4K
'dfgw' => , //东方购物
'zjjl' => , //之江纪录
'hzzh' => , //杭州综合
'hzmz' => , //杭州明珠
'hzsh' => , //杭州生活
'hzys' => , //杭州影视
'hzse' => , //杭州少儿体育
'jsjy' => , //江苏教育SD
'xpfy' => , //新片放映厅
'ttmhl' => , //体坛名栏汇
'rjlb' => , //热剧联播
'jsm' => , //军事迷必看大片
'jddy' => , //经典深圳旁边电影
'gqdp' => , //高清大片
'clzp' => , //成龙作品集
];
$ports = ['7108', '7109', '7112', '7113', '7116', '7117', '7121', '7126', '7127', '7129', '7130', '7131', '7132', '7133', '7134', '7135', '7136', '7137', '7138', '7139', '7140', '7141', '7142', '7144', '7145', '7146', '7148', '7149', '7150', '7151', '7152', '7153'];
$port = $ports;
$sessionID = authenticate();
$channelID = $n[$id];
$mediaID = $n[$id];
$playURL = getPlayURL($port, $sessionID, $channelID, $mediaID);
header('location:' . $playURL);
function authenticate()
{
global $port;
$url = "http://vsc.aikan.miguvideo.com:{$port}/EPG/VPE/PHONE/Authenticate";
$post = '{"terminalType":"AndroidPhone","loginType":"3"}';
$data = get($url, [], $post);
return json_decode($data)->sessionID;
}
function getPlayURL($port, $sessionID, $channelID, $mediaID)
{
$url = "http://vsc.aikan.miguvideo.com:{$port}/VSP/V3/PlayChannel";
$post = '{"businessType":"BTV","channelID":"' . $channelID . '","mediaID":"' . $mediaID . '"}';
$headers = ['Cookie: JSESSIONID=' . $sessionID];
$data = get($url, $headers, $post);
return json_decode($data)->playURL;
}
function get($url, $headers, $post)
{
$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_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
?>
oykooo
发表于 2024-1-29 05:30:23
感谢你的分享
bubu
发表于 2024-1-29 08:59:56
感谢大佬分享
sfee
发表于 2024-1-29 17:20:50
有效,有效有效,有效有效,有效有效,有效有效,有效
zpxzzp
发表于 2024-1-29 18:57:34
谢谢提供分享!
dvdwaps
发表于 2024-1-29 23:20:01
搬运贴搬运贴
oink
发表于 2024-1-30 14:31:46
感谢分享
voxxov
发表于 2024-1-30 14:45:01
谢谢分享