找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2226|回复: 14

[网络视频应用推荐 使用 疑问] 请您测试:gstv.php

[复制链接]
发表于 2022-6-16 13:37 | 显示全部楼层 |阅读模式
迅雷TV
  1. <?php
  2. $id = isset($_GET['id'])?$_GET['id']:'gsws';
  3. $n= array(
  4. 'gsws' => '6e1sy2',//甘肃卫视
  5. 'gsjj' => '10iv1j',//甘肃经济
  6. 'gswh' => 'w1l6d5',//甘肃文化影视
  7. 'gsgg' => '3t5xyc',//甘肃公共应急
  8. 'gsse' => '922k96',//甘肃少儿
  9. 'gsds' => 'l54391',//甘肃都市
  10. 'gsyd' => 'y72q36',//甘肃移动电视
  11. );
  12. $m3u8 = 'https://hls.gstv.com.cn/49048r/'.$n[$id].'.m3u8';

  13. if (empty($_GET['ts'])){
  14. print_r(preg_replace("/(.*?.ts)/i","gstv.php?ts=https://hls.gstv.com.cn/49048r/$1",getdata($m3u8,1)));
  15. } else {
  16.    $ts = getdata($_GET['ts'],0);
  17.    echo $ts;
  18.    }
  19.   
  20. function getdata($url,$type){
  21. $h = array(
  22.     "User-Agent: Mozilla/5.0 (Windows NT 6.1)",
  23.     "Referer: https://www.gstv.com.cn/zxc.jhtml",            
  24.     );   
  25. $ch = curl_init($url);
  26. curl_setopt($ch, CURLOPT_RETURNTRANSFER, $type);
  27. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1 );
  28. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  29. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  30. curl_setopt($ch, CURLOPT_HTTPHEADER, $h);
  31. $data = curl_exec($ch);
  32. curl_close($ch);
  33. return $data;
  34. }

  35. ?>
复制代码




补充内容 (2022-6-16 17:20):
请问:
在电脑上直接用h5播放器播放甘肃台播放线路(如甘肃卫视:https://hls.gstv.com.cn/49048r/6e1sy2.m3u8)时,若同时打开高网播放页面,可以播放,若关闭官网,就不能播放,是个什么情况?请坛友指教.

补充内容 (2022-6-16 17:21):
''若同时打开高网''为'若同时打开官网'
我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-6-16 13:41 | 显示全部楼层
这各地是都学会ts这招了
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 13:43 | 显示全部楼层
不能播放
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 13:49 | 显示全部楼层
IE打开能看到播放内容
但黑鸟和PotPlayer 64 bit无法播放,只是针对我电脑测试
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 14:02 | 显示全部楼层
放进服务器,getdata($m3u8,1)出不来切片,get  $m3u8是不是还有其它验证?

http://mmitv.top/test/gstv.php?id=gsws

补充内容 (2022-6-16 15:11):
大致找到原因了,有IP检测,挑代理服务器。
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 14:48 | 显示全部楼层
不明原因播不了,拆开
getdata($m3u8,0)可以出m3u8内的ts。
然后getdata($ts,0)可以出ts内容。
和在一起就不行了。

补充内容 (2022-6-16 15:06):
还有,放到网页播放器比如dplayer里倒是可以正常播放。
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 14:50 来自手机 | 显示全部楼层
从试听甘肃那个app找
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 15:02 | 显示全部楼层
QQ截图20220616150151.jpg


是真糊啊这码率

点评

APP的会略好一点,但是也是挺糊的。 [attachimg]559259[/attachimg]  详情 回复 发表于 2022-6-16 15:09
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 15:09 | 显示全部楼层
wjxgzz 发表于 2022-6-16 15:02
是真糊啊这码率

APP的会略好一点,但是也是挺糊的。
cccc.jpg
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 15:11 | 显示全部楼层
码率不超过400k。省台网中也是一绝了。
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 15:21 | 显示全部楼层
稍微修改了一下。
  1. <?php
  2. $id = isset($_GET['id'])?$_GET['id']:'gsws';
  3. $ts = $_GET['ts'];
  4. $n= array(
  5. 'gsws' => '6e1sy2',//甘肃卫视
  6. 'gsjj' => '10iv1j',//甘肃经济
  7. 'gswh' => 'w1l6d5',//甘肃文化影视
  8. 'gsgg' => '3t5xyc',//甘肃公共应急
  9. 'gsse' => '922k96',//甘肃少儿
  10. 'gsds' => 'l54391',//甘肃都市
  11. 'gsyd' => 'y72q36',//甘肃移动电视
  12. );

  13. if (!$ts){
  14.         $m3u8 = 'https://hls.gstv.com.cn/49048r/'.$n[$id].'.m3u8';
  15.         echo preg_replace("/(.*?.ts.*)/i","gstv1.php?ts=$1",getdata($m3u8,1));
  16. }
  17. else{
  18.         getdata("https://hls.gstv.com.cn/49048r/$ts",0);
  19. }
  20.   
  21. function getdata($url,$type){
  22. $h = array(
  23.     "User-Agent: Mozilla/5.0 (Windows NT 6.1)",
  24.     "Referer: https://www.gstv.com.cn/zxc.jhtml",            
  25.     );   
  26. $ch = curl_init($url);
  27. curl_setopt($ch, CURLOPT_RETURNTRANSFER, $type);
  28. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1 );
  29. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  30. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  31. curl_setopt($ch, CURLOPT_HTTPHEADER, $h);
  32. $data = curl_exec($ch);
  33. curl_close($ch);
  34. return $data;
  35. }

  36. ?>
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 15:56 来自手机 | 显示全部楼层
wjxgzz 发表于 2022-6-16 15:02
是真糊啊这码率

大神,解决一下亚洲电视app的三个凤凰,画质好阿里服务器
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 15:56 | 显示全部楼层
没播出来。
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-16 15:58 来自手机 | 显示全部楼层
如果用试听甘肃app中的m3u8?auth_key=时间戳-md5-0-md5.那个不限制。
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

发表于 2022-6-17 03:02 | 显示全部楼层
直接403
我的恩山、我的无线 The best wifi forum is right here.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )|网站地图

GMT+8, 2023-12-2 03:24

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表