Comments (2)
<?php
error_reporting(0);
$id = isset($_GET['id'])?$_GET['id']:'fhzx';
$fmt = isset($_GET['fmt'])?$_GET['fmt']:'hls';//hls flv
$n = [
'fhzx' => '7c96b084-60e1-40a9-89c5-682b994fb680', //资讯台
'fhzw' => 'f7f48462-9b13-485b-8101-7b54716411ec', //中文台
'fhhk' => '15e02d92-1698-416c-af2f-3e9a872b4d78', //香港台
];
if($fmt == 'hls') $url = "https://m.fengshows.com/api/v3/hub/live/auth-url?stream_type=hls&live_id={$n[$id]}&live_qa=HD";
if($fmt == 'flv') $url = "https://m.fengshows.com/api/v3/hub/live/auth-url?stream_type=flv&live_id={$n[$id]}&live_qa=HD";
$live = get_headers(json_decode(file_get_contents($url))->data->live_url,1)['Location'];
if($fmt == 'flv') {
header('Location:'.$live);
//echo $live;
}
if($fmt == 'hls') {
$burl = "http://qctv.fengshows.cn/live/";
$cur = preg_replace("/(.*?.ts)/i", $burl."$1",file_get_contents($live));
if($id == 'fhzw') $cur = $cur;
else $cur = preg_replace("/48-/","72-",$cur);
header("Content-Type: application/vnd.apple.mpegurl");
print_r($cur);
}
?>
用这个
from tvbox.
我试试看,多谢多谢
from tvbox.
Related Issues (15)
- 电视家源 HOT 2
- 猫影视 配置 config_open99.json 格式错误,读取失败。
- 9test
- 映迷影院 跟劇迷su 都失效了
- 新版猫影视更新支持node.js了 HOT 1
- 大佬收录一下这个 HOT 1
- 大佬,能不能把 miss优化一下
- tvbox HOT 1
- 合并一下提交罢~ 佛系一起维护 HOT 1
- 额 好多源都崩了~ HOT 6
- 有没有央视卫视的php,可以共享下吗 HOT 1
- jsm.json是否新增商店 HOT 2
- Mbox使用0821.json 配置让下载蜂蜜影视TV,这个APP怎么下载 HOT 1
- 非常好
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tvbox.