|
本帖最后由 guoma 于 2020-8-9 16:33 编辑
m3u8
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <style>html, body {width: 100%;height: 100%;margin: 0 0;}</style>
- </head>
- <body>
- <script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
- <script>
- $.ajaxPrefilter(function (options) {
- if (options.crossDomain && jQuery.support.cors) {
- var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
- options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
- }
- });
- var vid=location.href.split('html?id=')[1];
- if(vid=='yzxw'){url='http://www.yzntv.com/maintab/livel?cid=235'};//yzxwzh
- if(vid=='yzcs'){url='http://www.yzntv.com/maintab/livel?cid=291'};//yzcs
- if(vid=='yzsh'){url='http://www.yzntv.com/maintab/livel?cid=236'};//yzsh
- if(vid=='yzhj'){url='http://www.yzntv.com/maintab/livel?cid=292'};//yzhj
- if(vid=='yzjd'){url='http://www.yzntv.com/maintab/livel?cid=290'};//yzjd
- $.get(
- url,
- function(result){
- var reg=/beginplayurl = "(.*?)"/;
- m3u8 = result.match(reg)[1].split(',')[1].replace('yztv.','yztv-');
- location.href='http://www.nettvplus.live/player/video.html?url='+m3u8;//此处可添加video播放器、Dplayer播放器、阿里云播放器等。
复制代码 flv
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <style>html, body {width: 100%;height: 100%;margin: 0 0;}</style>
- </head>
- <body>
- <script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
- <script>
- $.ajaxPrefilter(function (options) {
- if (options.crossDomain && jQuery.support.cors) {
- var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
- options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
- }
- });
- var vid=location.href.split('html?id=')[1];
- if(vid=='yzxw'){url='http://www.yzntv.com/maintab/livel?cid=235'};//yzxwzh
- if(vid=='yzcs'){url='http://www.yzntv.com/maintab/livel?cid=291'};//yzcs
- if(vid=='yzsh'){url='http://www.yzntv.com/maintab/livel?cid=236'};//yzsh
- if(vid=='yzhj'){url='http://www.yzntv.com/maintab/livel?cid=292'};//yzhj
- if(vid=='yzjd'){url='http://www.yzntv.com/maintab/livel?cid=290'};//yzjd
- $.get(
- url,
- function(result){
- var reg=/beginplayurl = "(.*?)"/;
- flv= result.match(reg)[1].split(',')[0];
- u = encodeURIComponent(flv);
- location.href='http://g.alicdn.com/de/prismplayer-flash/1.2.16/PrismPlayer.swf?vurl='+u;
- });
- </script>
- </body>
- </html>
复制代码
|
评分
-
参与人数 2 | 恩山币 +2 |
收起
理由
|
wohenh***
| + 1 |
感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧! |
Dkd***
| + 1 |
感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧! |
查看全部评分
|