找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 750|回复: 3

[iptv信源 资源分享或寻求] 求大佬制作一下Channel A的PHP文件

[复制链接]
发表于 2022-5-21 14:59 | 显示全部楼层 |阅读模式
悬赏6恩山币已解决
view-source:http://www.ichannela.com/com/cmm/onair.do
  1. window.chaVodOptions = {
  2.                                                 "playerW":$('.onair_top').width(),
  3.                                                 "playerH":$('.onair_top').height(),
  4.                                                 "vUrl":"http://channelalive.ktcdn.co.kr/chalivepc/_definst_/atv2/playlist.m3u8?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NTMxMjMzNjQsInBhdGgiOiIvY2hhbGl2ZXBjL19kZWZpbnN0Xy9hdHYyIn0.ilOCUwHG5vHRCCG4UzCiCpwUnl_lZ80VQipLvWiBZ_Q",
  5.                                                 "vUrl_rtmp":"rtmp://channelalive.ktcdn.co.kr/chalivepc/_definst_/atv2?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NTMxMjMzNjQsInBhdGgiOiIvY2hhbGl2ZXBjL19kZWZpbnN0Xy9hdHYyIn0.ilOCUwHG5vHRCCG4UzCiCpwUnl_lZ80VQipLvWiBZ_Q",
  6.                                                 "adr" :"172.16.0.200",
  7.                                                 "pgmid" : "CA1_WPG2130032D",
  8.                                                 "clipid" : "CA1_onair",
  9.                                                 "section" : section,
  10.                                                 "vodtype" : "O",
  11.                                                 "broadDate" : broadDate,
  12.                                                 "id" : "",
  13.                                                 "price_yn" : "N",
  14.                                                 "autoYn" : true,
  15.                                                 "epsdNm" : "0",
  16.                                                 "posterImg" : "http://image.ichannela.com/images/onair_img.jpg",
  17.                                                 "duration": "60",
  18.                                                 "shareYn"  : "N"
  19.                                             };                     
复制代码

最佳答案

我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-5-21 14:59 | 显示全部楼层

  1. <?php
  2.     $apiurl = "http://www.ichannela.com/com/cmm/onair.do";
  3.     $info = file_get_contents($apiurl);
  4.     preg_match('/vUrl":"(.*?)"/i',$info,$m);
  5.     header("location:$m[1]");
  6. ?>
复制代码


点评

谢谢大佬  发表于 2022-5-21 15:48
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-21 15:24 | 显示全部楼层
  1. <?php
  2. $playurl = explode('",',explode('vUrl":"',file_get_contents("http://www.ichannela.com/com/cmm/onair.do"))[1])[0];
  3. header('Location: '.$playurl);
  4. ?>
复制代码


听不懂.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 01:58

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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