找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2645|回复: 10

扬州电视台js代理

[复制链接]
发表于 2020-8-9 16:22 | 显示全部楼层 |阅读模式
本帖最后由 guoma 于 2020-8-9 16:33 编辑

m3u8
  1. <html>
  2. <head>
  3. <meta http-equiv="content-type" content="text/html;charset=UTF-8">
  4. <style>html, body {width: 100%;height: 100%;margin: 0 0;}</style>
  5. </head>
  6. <body>
  7. <script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
  8. <script>
  9.       $.ajaxPrefilter(function (options) {
  10.        if (options.crossDomain && jQuery.support.cors) {
  11.           var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
  12.           options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
  13.        }
  14.       });
  15.       var vid=location.href.split('html?id=')[1];
  16.       if(vid=='yzxw'){url='http://www.yzntv.com/maintab/livel?cid=235'};//yzxwzh
  17.       if(vid=='yzcs'){url='http://www.yzntv.com/maintab/livel?cid=291'};//yzcs
  18.       if(vid=='yzsh'){url='http://www.yzntv.com/maintab/livel?cid=236'};//yzsh
  19.       if(vid=='yzhj'){url='http://www.yzntv.com/maintab/livel?cid=292'};//yzhj
  20.       if(vid=='yzjd'){url='http://www.yzntv.com/maintab/livel?cid=290'};//yzjd
  21.     $.get(
  22.       url,
  23.       function(result){
  24.         var reg=/beginplayurl = "(.*?)"/;
  25.         m3u8 = result.match(reg)[1].split(',')[1].replace('yztv.','yztv-');
  26.         location.href='http://www.nettvplus.live/player/video.html?url='+m3u8;//此处可添加video播放器、Dplayer播放器、阿里云播放器等。
复制代码
flv
  1. <html>
  2. <head>
  3. <meta http-equiv="content-type" content="text/html;charset=UTF-8">
  4. <style>html, body {width: 100%;height: 100%;margin: 0 0;}</style>
  5. </head>
  6. <body>
  7. <script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
  8. <script>
  9. $.ajaxPrefilter(function (options) {
  10. if (options.crossDomain && jQuery.support.cors) {
  11. var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
  12. options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
  13. }
  14. });
  15. var vid=location.href.split('html?id=')[1];
  16. if(vid=='yzxw'){url='http://www.yzntv.com/maintab/livel?cid=235'};//yzxwzh
  17. if(vid=='yzcs'){url='http://www.yzntv.com/maintab/livel?cid=291'};//yzcs
  18. if(vid=='yzsh'){url='http://www.yzntv.com/maintab/livel?cid=236'};//yzsh
  19. if(vid=='yzhj'){url='http://www.yzntv.com/maintab/livel?cid=292'};//yzhj
  20. if(vid=='yzjd'){url='http://www.yzntv.com/maintab/livel?cid=290'};//yzjd
  21. $.get(
  22. url,
  23. function(result){
  24. var reg=/beginplayurl = "(.*?)"/;
  25. flv= result.match(reg)[1].split(',')[0];
  26. u = encodeURIComponent(flv);
  27. location.href='http://g.alicdn.com/de/prismplayer-flash/1.2.16/PrismPlayer.swf?vurl='+u;
  28. });
  29. </script>
  30. </body>
  31. </html>
复制代码


评分

参与人数 2恩山币 +2 收起 理由
wohenh*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
Dkd*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-8-9 16:44 来自手机 | 显示全部楼层
guoma大牛了,又热心。可是这个代码不能用DIYP,百川和骆驼播放,要是能改成php就好了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

头像被屏蔽
发表于 2020-8-9 16:48 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 17:01 | 显示全部楼层
看看,最近老哥多产啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 17:10 | 显示全部楼层
dszbdq.cn 发表于 2020-8-9 16:48
JS里面接口和获取方式都给你了,自己改下就可以了,不会也没关系,随便找个源码按照模式修改一下

能出个教程吧?我没一点基础的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 17:33 | 显示全部楼层
希望大佬给个例子将html改为php的范本
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 18:32 | 显示全部楼层
45430770 发表于 2020-8-9 17:33
希望大佬给个例子将html改为php的范本

html的不会用唉,电脑基础差不知道怎么修改成PHP,看他dszbdq.cn感觉好简单。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-8-9 18:45 | 显示全部楼层
我老人家也是是自己摸索着弄的,没进行过专业培训什么的,许多知识也是一知半解。论坛里有学问者大有人在,我自拜他们为大师。向大师们学习!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 19:08 | 显示全部楼层
guoma 发表于 2020-8-9 18:45
我老人家也是是自己摸索着弄的,没进行过专业培训什么的,许多知识也是一知半解。论坛里有学问者大有人在, ...

虽然html代理源码不会用,但还是非常谢谢,大叔太厉害了,像我电脑基础太差,代码稍哪改一下就播放不了,会写代码的大神真的佩服。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 19:10 | 显示全部楼层
<?php
//id=235,236,290,291,292
$id=$_GET["id"];
$info=file_get_contents("http://www.yzntv.com/maintab/livel?cid=$id");
preg_match('/beginplayurl="(.*?),/i',$info,$sn);
header('Location:'.$sn[1]);
?>
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 19:37 | 显示全部楼层

大神,贵州有线guoma大叔写的网页JS代理源码怎么改成PHP的代理源码? HTML的实在不会在盒子上使用。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-9 20:02 来自手机 | 显示全部楼层
有大神出手了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 03:45

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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