找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1309|回复: 5

[iptv信源 资源分享或寻求] 网上找到一个播放器代码,大神帮忙看看如何设置

[复制链接]
发表于 2022-9-18 12:53 | 显示全部楼层 |阅读模式

<html>
<head>
<title>播放器</title>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
<script type="text/javascript" src="js/tvlive.js"></script>
<!--<script type="text/javascript" src="http://www.zimtv.cn/tv/css/ctvfans.js"></script>-->
<script type="text/javascript">  
// 定义一个函数用以显示当前时间
function displayTime() {
var elt = document.getElementById("clock"); // 通过id= "clock"找到元素
var now = new Date(); // 得到当前时间
elt.innerHTML = now.toLocaleTimeString('chinese', {hour12: false}); //让elt来显示它 24小时制false/12小时制true
setTimeout(displayTime,1000); //在1秒后再次执行
}
window.onload = displayTime; //当onload事件发生时开始显示时间
</script>

<style type="text/css">
/* 右上图片变成黑白--只需要改最后一个值*/
.logo { -webkit-filter: grayscale(100%);-moz-filter: grayscale(100%);-ms-filter: grayscale(100%);-o-filter: grayscale(100%);filter: grayscale(0%)/*黑白调整*/;filter: gray;}
/* 右上图片透明度设置*/
img{opacity:0.4;filter:alpha(opacity=40);}
img:hover{opacity:1.0;filter:alpha(opacity=100);}
/* 背景测试卡设置*/
body{background:url("img/ceshika.png");-moz-background-size:100% 100%; /* 背景测试*/background-size:100% 100%;background-repeat:no-repeat;}
html{background-color:#2b2b2b;  margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;}
body{margin:0px;}
</style>

<style type="text/css">

.STYLE1 {color: #CCCCCC}
.STYLE2 {font-size: large}
a:link {
        color:#FFFFFF; /*#00FF00*/
        text-decoration: none;
}
a:visited {
        text-decoration: none;
        color: #F8FF00 ;/*#33CC00*/
}
a:hover {
        text-decoration: none;
        color: #99FF00;
}
a:active {
        text-decoration: none;
}
.STYLE4 {font-size: x-large}
</style>
</head>

<!--右上角台标-->
<a href="/" target="_blank">
<img src="img/m-logo.png" width="5.625%" height="10%" border="0" class="logo" style="z-index:0;position:absolute;right:4%;top:2%"/></a>        
<!---swf类节目引源--->
<script type="text/javascript">
function swfplay(str){
document.writeln("<embed src=\""+str+"\" quality=\"high\" wmode=\"transparent\" width=\"100%\" height=\"100%\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" allowfullscreen=\"true\" allowscriptaccess=\"always\"><\/embed>");
};
</script>
<script type="text/javascript">
function web(str) {
document.writeln("<iframe src=\"" + str + "\" quality=\"high\" allowfullscreen=\"true\" width=\"100%\" height=\"100%\" frameborder=\"no\" border=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" allowtransparency=\"yes\"pluginspage=\"http://www.macromedia.com/go/getflashplayer\"><\/iframe>");
};
</script>
<!--浏览器引源入口-->
<script language="javascript">
function getSearch(){
         try{
         var url=location.search.replace(/&/g,'#'),i;
         var lss=url.substr(url.indexOf('?')+1).split('&');
         for(i=0;i<lss.length;i++) if (lss.toLowerCase().indexOf(arguments[0].toLowerCase()+'=')==0) return decodeURIComponent(lss.substr(lss.indexOf('=')+1).replace(/\#/g,'&'));
         } catch(e) {}
         return '';
}
var type = getSearch("p");
var tvurl = getSearch("id");
var url = getSearch("url");
var vid = getSearch("vid");
var xml = getSearch("xml");
var img = getSearch("i");
</script>
<!--CCTV官方源代码-->
<script language="javascript">
if(type=="cntv"||type=="cnsy"||type=="cnflv"||type=="cctv"||type=="cnswf"||type=="cnhls1"||type=="cnhls4"){
var now=new Date();
var s = now.getTime().toString();
document.write('<scr'+'ipt type="text/javascript" src="http://vdn.apps.cntv.cn/api2/liveHtml5.do?channel=pa://cctv_p2p_hd'+tvurl+'&client=flash&t='+s+'"></scr'+'ipt>');
}
//https://player.cntv.cn/standard/live_HLSDRM20180524.swf?tai='+tvurl+'&ChannelID='+tvurl+'&videoTVChannel='+tvurl+'&P2PChannelID=pd://cctv_p2p_hd'+tvurl+'
</script>
<script language="javascript">
eval('var html5VideoData='+html5VideoData);
var hds2=encodeURIComponent(html5VideoData.hds_url.hds2);
var flv2=encodeURIComponent(html5VideoData.flv_url.flv2);
var hls1=html5VideoData.hls_url.hls1;
var hls2=encodeURIComponent(html5VideoData.hls_url.hls2);
var hls4=encodeURIComponent(html5VideoData.hls_url.hls4);

var addrs=encodeURIComponent(html5VideoData.hds_url.hds1);
var backurl=encodeURIComponent(html5VideoData.hds_url.hds2);
var preview=encodeURIComponent(html5VideoData.hls_url.hls5);
var timeurl=encodeURIComponent(html5VideoData.flv_url.flv5);
</script>

<script type="text/javascript">
<!---无画面提示画面--->
if(type==""){
document.write('<img src="img/xinhaowu.png" width="100%" height="100%" border="0" class="logo" style="z-index:0;position:absolute;left:0%;top:0%;"/><iframe name="lutv" src="ceshika.php"  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true" ></iframe>');
};
if(type=="SHOUJI"){//../tvplayer2.php?id=3200
document.write('<img src="img/SHOUJI.png" width="100%" height="100%" border="0" class="logo" style="z-index:0;position:absolute;left:0%;top:0%;opacity:0.7;filter:alpha(opacity=70);"/><iframe name="lutv" src=""  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true" ></iframe>');
document.write('<B style="color:#CDCDCD;border-radius:15px;text-shadow:2px 2px 3px #000;font-size:100%;font-family:Microsoft JhengHei;position:absolute;left:20%;bottom:24.5%;">  <font color=#FFFFF> 正在播出:<span id="节目表">  </span></font>  </B>');
};
if(type=="ceshika"){//用于信号转换
document.write('<img src="img/ceshika.png" width="48.8%" height="48.6%" border="0" class="logo" style="z-index:0;position:absolute;left:25.6%;top:25.60%;opacity:0.9;filter:alpha(opacity=90)"/><iframe name="lutv" src="ceshika.php"  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true" ></iframe>');
document.write('<img src="img/ctvlogo.png" width="5.625%" height="10%" border="0" class="logo" style="z-index:0;position:absolute;left:8.5%;top:6.3%;opacity:1.0;filter:alpha(opacity=100)";/>');
//document.write('<B style="color:#CDCDCD;border-radius:15px;text-shadow:2px 2px 3px #000;font-size:150%;font-family:Microsoft JhengHei;position:absolute;right:44%;bottom:5.5%;">  <font color=#FFFFF> <a id=clock </a> </font> </B>');
};
if(type=="lutv"){
var secs =30; //倒计时的秒数
var URL ;
function Load(url){
URL =url;
for(var i=secs;i>=0;i--)
{
window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000);
}
}
function doUpdate(num)
{
document.getElementById('ShowDiv').innerHTML =''+num+'<sup></sup>' ;
if(num == 0) { window.location=URL; }
}
Load("?p=ceshika");
//?p=cqiptv&id=105 /6
document.write('<iframe src="?p=cqiptv&id=106" style="margin-top:0%;margin-left:0%;background:url(img/ceshika1.png);-moz-background-size:100% 100%; background-size:100% 100%;background-repeat:no-repeat;" scrolling="no" frameborder="0" width="100%" height="100%" allowFullScreen="ture"></iframe>');
//document.write('<img src="http://www.zimtv.cn/tv/img/ceshika.png" width="48.8%" height="48.6%" border="0" class="logo" style="z-index:0;position:absolute;left:25.6%;top:25.6%;opacity:0.2;filter:alpha(opacity=50);"/>');
//document.write('<B style="color:#FFFFFF;border-radius:15px;background-image:linear-gradient(90deg, rgba(255,0,3,0.00),rgba(255,0,0,0.70),rgba(224,0,255,0.70));text-shadow:2px 2px 3px #000;font-size:10%;font-family:Microsoft JhengHei;position:absolute;left:14.5%;top:7.8%;">  <font color=#FF0000><i class="fa fa-circle"></i></font>   <a id="ShowDiv"></a> <font color=#FF0000>|</font> <span id="节目表"><a>放送精彩 稍后继续</a></span>  </B>');
//节目预告        

document.write('<B style="color:#CDCDCD;border-radius:15px;text-shadow:2px 2px 3px #000;font-size:150%;font-family:Microsoft JhengHei;position:absolute;right:74%;bottom:30.5%;">  <font color=#FFFFF> NEXT </font> </B>');
document.write('<B style="color:#CDCDCD;border-radius:30px;background-image:linear-gradient(45deg,rgba(255,0,4,0.90),rgba(232,0,255,0.90));text-shadow:2px 2px 3px #000;font-size:150%;font-family:Microsoft JhengHei;position:absolute;left:25%;bottom:24%;"><font color=#FFFFF> <a id="ShowDiv"></font> </B>');
        
document.write('<img src="img/jingcai.png" width="25%" height="12%" border="0" class="logo" style="z-index:0;position:absolute;left:0%;top:65%;opacity:0.9;filter:alpha(opacity=90);"/>');
document.write('<B style="color:#CDCDCD;border-radius:15px;text-shadow:2px 2px 3px #000;font-size:130%;font-family:Microsoft JhengHei;position:absolute;right:74%;bottom:24.5%;">  <font color=#FFFFF><span id="节目表">放送精彩 现在继续 </span></font>  </B>');
        
document.write('<B style="color:#CDCDCD;border-radius:15px;background-image:linear-gradient(90deg,rgba(10,10,10,0.90),rgba(255,0,4,0.90),rgba(25,25,25,0.90));text-shadow:2px 2px 3px #000;font-size:150%;font-family:Microsoft JhengHei;position:absolute;right:2.8%;bottom:3%;">  <font color=#FFFFF><span id="标题">温 馨 提 示</span></font>  </B>');
        

//台标
document.write('<img src="img/ctvlogo.png" width="5.625%" height="10%" border="0" class="logo" style="z-index:0;position:absolute;left:8.5%;top:6.3%;opacity:0.9;filter:alpha(opacity=90)";/>');
};
if(type=="tianqi"){
document.write('<iframe src="live/?id=" style="margin-top:0%;margin-left:0%;background:url(img/ceshika.png);-moz-background-size:100% 100%; background-size:100% 100%;background-repeat:no-repeat;" scrolling="no" frameborder="0" width="100%" height="100%" allowFullScreen="ture"></iframe>');
//台标
document.write('<img src="img/weathertv.png" width="20%" height="8%" border="0" class="logo" style="z-index:0;position:absolute;left:7.5%;top:6.3%;opacity:0.9;filter:alpha(opacity=90);hover{opacity:1.0;filter:alpha(opacity=100);"/>');
//document.write('<img src="https://cj.weather.com.cn/portal/images/footer-logo.png" width="18%" height="8%" border="0" class="logo" style="z-index:0;position:absolute;left:7.5%;top:6.3%;"/>');
};
        
<!--进入官网-->        
if(type=="w"){
document.write('<iframe name="lutv" src="api/tiao.php?url="style="background:url(../img/snow.gif) ;-moz-background-size:100% 100%; /* 背景测试*/background-size:100% 100%;background-repeat:no-repeat; /* 画面位置变更*/ margin-top:-0px;margin-left:-0px;"  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true" ></iframe>');
};
<!---网页引用--->
if(type=="f"){
document.write('<iframe name="lutv" src="'+ url +'" style="background:url() ;-moz-background-size:100% 100%; /* 背景测试*/background-size:100% 100%;background-repeat:no-repeat; /* 画面位置变更*/ margin-top:-0px;margin-left:-0px;"  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true"></iframe>');
};
if(type=="r"){//蜻蜓FM 广播节目专用
document.write('<audio id="audio" autoplay="autoplay" src="https://lhttp.qingting.fm/live//64k.mp3" controls style="height:100%; width:100%; outline:none; background:url();-moz-background-size:100% 100%; /* 背景测试*/background-size:100% 100%;background-repeat:no-repeat; /* 画面位置变更*/ margin-top:-0px;margin-left:-0px;"></audio>');
document.addEventListener('DOMContentLoaded', function () {
    function audioAutoPlay() {
        var audio = document.getElementById('audio');
            audio.play();
        document.addEventListener("WeixinJSBridgeReady", function () {
            audio.play();
        }, false);
    }
    audioAutoPlay();
});
document.addEventListener('touchstart', function () {
    function audioAutoPlay() {
        var audio = document.getElementById('audio');
            audio.play();
    }
    audioAutoPlay();
});
};
<!---网页引用--->
if(type=="bili"){//B站
document.write('<iframe name="lutv" src="https://player.bilibili.com/player.html?bvid='+ tvurl +'" style="background:url() ;-moz-background-size:100% 100%; /* 背景测试*/background-size:100% 100%;background-repeat:no-repeat; /* 画面位置变更*/ margin-top:-0px;margin-left:-0px;"  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true"></iframe>');
};
if(type=="vod"){//带搜索
document.write('<iframe name="lutv" src="https://z1.m1907.cn/?jx='+ tvurl +'" style="background:url() ;-moz-background-size:100% 100%; /* 背景测试*/background-size:100% 100%;background-repeat:no-repeat; /* 画面位置变更*/ margin-top:-0px;margin-left:-0px;"  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true"></iframe>');
};
if(type=="vod2"){//直接网站
document.write('<iframe name="lutv" src="https://vip.parwix.com:4433/player/?url='+ tvurl +'" style="background:url() ;-moz-background-size:100% 100%; /* 背景测试*/background-size:100% 100%;background-repeat:no-repeat; /* 画面位置变更*/ margin-top:-0px;margin-left:-0px;"  height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowFullScreen="true"></iframe>');
};
<!---video js播放器--->
if(type=="live"){
document.write('<iframe name="lutv" src="live/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vp"){
document.write('<iframe name="lutv" src="vplayer/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vp2"){
document.write('<iframe name="lutv" src="vp/vp.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vps"){//升级版cctv6专用
document.write('<iframe name="lutv" src="vp/vps.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vpl"){
document.write('<iframe name="lutv" src="vp/vpl.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vpx"){
document.write('<iframe name="lutv" src="vp/vpx.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vpx2"){
document.write('<iframe name="lutv" src="vp/vpx2.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vpq"){
document.write('<iframe name="lutv" src="vp/vpq.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="vpr"){//用于rtmp格式视频
document.write('<iframe name="lutv" src="vplayer2/rtmp.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="ckX2"){
document.write('<iframe name="lutv" src="ckX2/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="ep"){
document.write('<iframe name="lutv" src="eplayer/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="cu"){
document.write('<iframe name="lutv" src="cuplayer/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="dp"){
document.write('<iframe name="lutv" src="dplayer/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="mudu"){
document.write('<iframe name="lutv" src="http://mudu.tv/?a=index&c=show&id='+tvurl+'&type=pc" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!---优酷视频代码--->
if(type=="youku"){
document.write('<iframe name="lutv" src="http://player.youku.com/embed/'+tvurl+'" width="100%" height="100%" frameborder="0" scrolling="no"  allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash"></iframe>');
};
<!---swf播放器--->
if(type=="jw"){
document.write('<iframe name="lutv" src="jwplayer/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="flv"){
//str='ckplayer/ckplayer.swf?p=1&v=100&lv=1&f='+tvurl+'';
//swfplay(str);
document.write('<iframe name="lutv" src="ckplayer/flv.html?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="rtmp"){
document.write('<iframe name="lutv" src="vplayer2/rtmp.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="ck"){
document.write('<iframe name="lutv" src="ckplayer/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="ckX"){
document.write('<iframe name="lutv" src="ckX/?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="ckX1"){
document.write('<iframe name="lutv" src="ckX1/?url='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!--f4m格式直播-->
if(type=="f4m"){
str='f4mplayer/f4m.swf?src='+tvurl+'&streamType=live&autoPlay=true&controlBarAutoHide=true';
swfplay(str);
};

<!---直播代码--->
if(type=="zhibo"){ //112.132.209.46/liveplay-kk.rtxapp.com
        //http://shbu.live.bestvcdn.com.cn:8080
        //http://183.207.255.207/live/program/live/hnwshd/2300000/mnf.m3u8
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://shbu.live.bestvcdn.com.cn:8080/live/program/live/'+tvurl+'/'+url+'00000/mnf.m3u8" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};

<!---央视网直播--->
if(type=="cctv"){
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/cctv.php?id=" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
//https://cctvalih5ca.v.myalicdn.com/live/cctv5plus_2/index.m3u8 //https://cctvtxyh5ca.liveplay.myqcloud.com/live/'+tvurl+'_2_hd/index.m3u8
//document.write('<iframe name="lutv" src="vp/vpx.php?id=https://cctvalih5ca.v.myalicdn.com/live/'+tvurl+'_2/index.m3u8 " height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};        
if(type=="cctv2"){
document.write('<iframe name="lutv" src="vp/vpx.php?id='+hls2+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};        
/*
if(type=="cntv"){
document.write('<iframe name="lutv" src="http://dianshi.1.tzps.net/cctv/1/cctv.com.htm?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};        
*/
if(type=="cntv2"){
str='https://player.cntv.cn/standard/live_HLSDRM20180524.swf?tai='+tvurl+'&ChannelID='+tvurl+'&videoTVChannel='+tvurl+'&P2PChannelID=pd://cctv_p2p_hd'+tvurl+'';
web(str);
};
if(type=="cctv6"){
document.write('<iframe name="lutv" src="vp/vps.php?id=" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!---移动咪咕直播--->
if(type=="migu"){
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/migu.php?id='+tvurl+'" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
<!---联通wo直播--->
if(type=="wo"){ //http://womlive.cloud.wo.cn/tvlive/100'+tvurl+'/otpzod_otpzod,100'+tvurl+'_hls_pull_live.m3u8
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://womlive.cloud.wo.cn/tvlive/100'+tvurl+'.m3u8" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!---教育网直播--->
if(type=="ivi"){ //http://v.mp.haue.edu.cn/hls/ 河南工程学院 http://live.scuec.edu.cn:8080/hls/ 中南民族大学
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://v.mp.haue.edu.cn/hls/'+tvurl+'.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
if(type=="ivi2"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://v.mp.haue.edu.cn/hls/'+tvurl+'.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
<!--北京电视频道-->
if(type=="bjtv"){//http://111.6.126.218/hsplay-360.v.btime.com/live_btime/btv_sn_20170706_s1/index.m3u8
        //http://pull.brtvcloud.com/brtv8kapptv/brtv8kapp'+fhid+'.m3u8
if(tvurl=="1"){fhid="bjws"};//北京卫视
if(tvurl=="2"){fhid="btvwy"};//北京文艺
if(tvurl=="3"){fhid="btvkj"};//北京科教
if(tvurl=="4"){fhid="btvys"};//北京影视
if(tvurl=="5"){fhid="btvcj"};//北京财经
if(tvurl=="6"){fhid="bjjs"};//北京冬奥纪实
if(tvurl=="7"){fhid="btvsh"};//北京生活
if(tvurl=="8"){fhid="btvqn"};//北京青年
if(tvurl=="9"){fhid="btvxw"};//北京新闻
if(tvurl=="10"){fhid="kaku"};//北京卡酷少儿
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/btime.php?id='+fhid+'" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
//http://live.cooltv.top/tv/btime.php?id=btvkj
<!---天津电视台开始--->
if(type=="tjtv"){

};

<!----东方直播开始--->
if(type=="dftv"){ //swf
if(tvurl=="dfws"){fhid="800081"};//东方卫视
if(tvurl=="xwzh"){fhid="800084"};//新闻综合
if(tvurl=="shwy"){fhid="800089"};//上海外语
if(tvurl=="shds"){fhid="800090"};//上海都市
if(tvurl=="jsrw"){fhid="800091"};//纪实人文
if(tvurl=="yicai"){fhid="800092"};//第一财经
str='http://player.kksmg.com/data/player_swf/KKPlayer.swf?playerId=2969363206&liveChannelID='+fhid+'';
//web(str);
swfplay(str);
};
if(type=="dftv2"){ //
if(tvurl=="dfws"){fhid="dfws"};//东方卫视
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/shtv.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};


我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2022-9-18 12:54 | 显示全部楼层
<!--重庆广电直播-->
if(type=="cbg"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=https://sjlivecdn9.cbg.cn/202209172116/app_2/_definst_/ls_.stream/chunklist.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>'); //id:2卫视3新闻10法
};
if(type=="cqtv"){
if(tvurl=="cqws"){fhid=""};//卫视
if(tvurl=="cqkj"){fhid="50001"};//科教
if(tvurl=="cqse"){fhid="50002"};//少儿
if(tvurl=="cqsh"){fhid="50003"};//生活
if(tvurl=="cqys"){fhid="50004"};//影视
if(tvurl=="cqwt"){fhid="50005"};//文体
document.write('<iframe name="lutv" src="cuplayer/?id=http://36.170.51.169/1301-txt.otvstream.otvcloud.com/otv/skcc/live/channel'+fhid+'/index.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>'); //id:2卫视3新闻10法
};
if(type=="cqiptv"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=https://zbxclive.cbg.cn/app_2/_definst_/ls_'+tvurl+'.stream/chunklist.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>'); //id:2卫视3新闻10法
};
//http://qxlmlive.cbg.cn:1935/app_2/_definst_/ls_67.stream/chunklist.m3u8 //手机端播出
//https://sjlivecdn9.cbg.cn/202111032130/app_2/_definst_/ls_2.stream/chunklist.m3u8 //PC端播出
//https://sjlivecdn9.cbg.cn/202209172116/app_2/_definst_/ls_'+tvurl+'.stream/chunklist.m3u8
<!----芒果直播开始--->
if(type=="mgtv"){
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/hunantv.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="mgtv2"){
str='http://player.hunantv.com/mgtv_v5_live/live.swf?channel_id='+tvurl+'';
swfplay(str);
};
<!----湖南卫视--->
//http://112.132.209.46/liveplay-kk.rtxapp.com/live/program/live/hnwshd/4000000/mnf.m3u8
//shbu.live.bestvcdn.com.cn:8080
//keonline.shanghai.liveplay.qq.com
//112.132.209.46/liveplay-kk.rtxapp.com
//183.207.255.190
//112.25.48.68
if(type=="hntv"){//
if(tvurl=="hnws1"){fhid="vp/vpx.php?id=http://shbu.live.bestvcdn.com.cn:8080/live/program/live/hnwshd/4000000/mnf.m3u8"};//湖南卫视
if(tvurl=="hnws2"){fhid="vp/vpx.php?id=http://112.132.209.46/liveplay-kk.rtxapp.com/live/program/live/hnwshd/2300000/mnf.m3u8"};//湖南卫视
document.write('<iframe name="lutv" src="'+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!---湖北直播开始--->
if(type=="hubeitv"){
document.write('<iframe name="lutv" width="100%" height="100%" src="http://app.cjyun.org/video/player/index?vid='+tvurl+'&thumb=&sid=10013&next=&autoplay=autoplay&type=stream&customid=21" scrolling="no" border="0" frameborder="0" allowtransparency="true" allowFullScreen="true" style="background-color=transparent"></iframe>');
};
<!---武汉电视台--->
if(type=="whtv"){
document.write('<iframe name="lutv" width="100%" height="100%" src="ckX/?id=http://stream.appwuhan.com/'+tvurl+'/sd/live.m3u8" scrolling="no" border="0" frameborder="0" allowtransparency="true" allowFullScreen="true" style="background-color=transparent"></iframe>');
};
<!---宜昌电视台--->
if(type=="hbyctv"){
document.write('<iframe name="lutv" width="100%" height="100%" src="http://www.zimtv.cn/tv/player/api/hubei-YCTV.php?id='+tvurl+'" scrolling="no" border="0" frameborder="0" allowtransparency="true" allowFullScreen="true" style="background-color=transparent"></iframe>');
};
<!---江苏直播开始--->
if(type=="jstv"){
//document.write('<iframe name="lutv" width="100%" height="100%" src="https://www.nettvpro.live/embed/jiangsu.php?id='+tvurl+'" scrolling="no" border="0" frameborder="0" allowtransparency="true" allowFullScreen="true" style="background-color=transparent"></iframe>');
document.write('<iframe name="lutv" width="100%" height="100%" src="http://www.zimtv.cn/tv/player/api/jiangsutv.php?id='+tvurl+'" scrolling="no" border="0" frameborder="0" allowtransparency="true" allowFullScreen="true" style="background-color=transparent"></iframe>');
};      
<!---浙江直播代码-->
if(type=="zjtv"){
var vid=window.location.href.split('id=')[1];
src1='https://hw-m-l.cztv.com/channels/lantian/channel0'+vid+'/360p.m3u8';
src2='https://hw-m-l.cztv.com/channels/lantian/channel0'+vid+'/540p.m3u8';
src3='https://hw-m-l.cztv.com/channels/lantian/channel0'+vid+'/720p.m3u8';
src4='https://hw-m-l.cztv.com/channels/lantian/channel0'+vid+'/1080p.m3u8';
//https://hw-m-l.cztv.com/channels/lantian/channel012/1080p.m3u8
src5='https://ali-m-l.cztv.com/channels/lantian/channel0'+vid+'/360p.m3u8';
src6='https://ali-m-l.cztv.com/channels/lantian/channel0'+vid+'/540p.m3u8';
src7='https://ali-m-l.cztv.com/channels/lantian/channel0'+vid+'/720p.m3u8';
src8='https://ali-m-l.cztv.com/channels/lantian/channel0'+vid+'/1080p.m3u8';

src9='https://yd-m-l.cztv.com/channels/lantian/channel0'+vid+'/360p.m3u8';
src10='https://yd-m-l.cztv.com/channels/lantian/channel0'+vid+'/540p.m3u8';
src11='https://yd-m-l.cztv.com/channels/lantian/channel0'+vid+'/720p.m3u8';
//src12='https://yd-m-l.cztv.com/channels/lantian/channel0'+vid+'/1080p.m3u8';
src12='https://yd-m-l.cztv.com/channels/lantian/channel'+vid+'/1080p.m3u8';

document.write('<iframe name="lutv" src="vp/vpx.php?id='+src4+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};

<!--河北直播代码-->
if(type=="hebtv"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://live'+url+'.plus.hebtv.com/'+tvurl+'x/hd/live.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
if(type=="hebtv2"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://live'+url+'.plus.hebtv.com/'+tvurl+'/sd/live.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
<!--山东直播代码-->
if(type=="sdtv"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=https://livealone302.iqilu.com/iqilu/'+tvurl+'.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
<!--青岛直播代码-->
if(type=="sdqdtv"){
str='http://video10.qtv.com.cn/Bravoplayer/player_file/Player20161031.swf?api=http://video10.qtv.com.cn&skin=http://video10.qtv.com.cn/newplayer/plugins/BravoPlayerSkin.swf&bravoConfigUrl=http://video10.qtv.com.cn/newplayer/plugins/BravoConfig.xml&sd='+tvurl+'-hd&autoplay=1';
swfplay(str);
};
<!--山西直播代码-->
if(type=="shanxitv"){
document.write('<iframe name="lutv" width="100%" height="100%" src="http://www.zimtv.cn/tv/player/api/shanxitv.php?id='+tvurl+'"  scrolling="no" border="0" frameborder="0" allowtransparency="true" style="background-color=transparent"></iframe>');
};
<!--江西电视代码-->
if(type=="jxtv"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://local.live.jxtvcn.com.cn/live-jxtv/tv_jxtv'+tvurl+'.m3u8" height="100%" width="100%"scrolling="no" border="0" frameborder="0"></iframe>');
};
<!--福建直播代码-->
if(type=="fjtv"){
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/fujiantv.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!--福建厦门直播代码-->
if(type=="fjxmtv"){
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://xiamencncc.v.wscdns.com/chylh/zzxmt'+tvurl+'_1/index.m3u8" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
      
<!--广东直播代码-->
if(type=="gdtv"){
if(tvurl=="0"){fhid="1182"};//广东卫视
if(tvurl=="1"){fhid="1186"};//广东新闻
if(tvurl=="2"){fhid="1184"};//广东体育
if(tvurl=="3"){fhid="1198"};//广东综艺4K
if(tvurl=="4"){fhid="1183"};//广东珠江
if(tvurl=="5"){fhid="1187"};//广东嘉佳卡通
if(tvurl=="6"){fhid="1191"};//广东国际
if(tvurl=="7"){fhid="1185"};//广东公共
if(tvurl=="8"){fhid="1183"};//广东珠江
if(tvurl=="9"){fhid="http://szlive.grtn.cn/fcpd/sd/live.m3u8"};//广东房产 1192
if(tvurl=="10"){fhid="1196"};//广东经济科教
if(tvurl=="11"){fhid="1199"};//广东影视
if(tvurl=="12"){fhid="1200"};//广东少儿
if(tvurl=="13"){fhid="1197"};//广东南方卫视
if(tvurl=="14"){fhid="2393"};//南方购物
if(tvurl=="15"){fhid="2463"};//广东移动
if(tvurl=="16"){fhid="2436"};//现代教育
if(tvurl=="17"){fhid="2510"};//岭南戏曲
if(tvurl=="18"){fhid="2511"};//GRTN文化频道
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/m3u8.php?/iTouchTV/'+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
if(type=="gdtv2"){
if(tvurl=="0"){fhid="43"};//广东卫视
if(tvurl=="1"){fhid="45"};//广东新闻
if(tvurl=="2"){fhid="47"};//广东体育
if(tvurl=="3"){fhid="16"};//广东综艺4K
if(tvurl=="4"){fhid="44"};//广东珠江
if(tvurl=="5"){fhid="66"};//广东嘉佳卡通
if(tvurl=="6"){fhid="46"};//广东国际
if(tvurl=="7"){fhid="48"};//广东公共
if(tvurl=="8"){fhid="44"};//广东珠江
if(tvurl=="9"){fhid="67"};//广东房产
if(tvurl=="10"){fhid="49"};//广东经济科教
if(tvurl=="11"){fhid="53"};//广东影视
if(tvurl=="12"){fhid="54"};//广东少儿
if(tvurl=="13"){fhid="51"};//广东南方卫视
if(tvurl=="14"){fhid="42"};//南方购物
if(tvurl=="15"){fhid="74"};//广东移动
if(tvurl=="16"){fhid="13"};//现代教育
if(tvurl=="17"){fhid="15"};//岭南戏曲
if(tvurl=="18"){fhid="75"};//GRTN文化频道      

document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/m3u8.php?/gdtv/'+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');      
};
      
<!--广州直播代码-->
if(type=="gzstv"){
if(tvurl=="1"){fhid="zhonghe"};//广州
if(tvurl=="2"){fhid="xinwen"};//新闻
if(tvurl=="3"){fhid="fazhi"};//法治
if(tvurl=="4"){fhid="shenghuo"};//生活 & 南国都市(4K)
if(tvurl=="5"){fhid="yingshi"};//影视
if(tvurl=="6"){fhid="jingsai"};//竞赛
if(tvurl=="7"){fhid="gouwu"};//购物
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/m3u8.php?/gztv/'+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');      
};
<!--深圳直播代码-->
if(type=="sztv"){
if(tvurl=="1"){fhid="1206"};//卫视
if(tvurl=="2"){fhid="1207"};//都市
if(tvurl=="3"){fhid="1208"};//电视剧
if(tvurl=="4"){fhid="1213"};//公共
if(tvurl=="5"){fhid="1209"};//财经生活
if(tvurl=="6"){fhid="1210"};//娱乐
if(tvurl=="7"){fhid="1212"};//少儿
if(tvurl=="8"){fhid="1217"};//移动
if(tvurl=="9"){fhid="1219"};//购物
if(tvurl=="10"){fhid="1214"};//国际
if(tvurl=="11"){fhid="1184"};//体育      

document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/m3u8.php?/iTouchTV/'+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');      
};
if(type=="sztv2"){
document.write('<iframe name="lutv" src="https://www.nettvpro.live/embed/shenzhen.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!--四川直播代码-->
if(type=="sctv"){
if(tvurl=="scws"){fhid="scws"};//卫视
if(tvurl=="sctv2"){fhid="scjj"};//经济
if(tvurl=="sctv3"){fhid="scwhly"};//文化
if(tvurl=="sctv4"){fhid="scxw"};//新闻
if(tvurl=="sctv5"){fhid="scyswy"};//影视
if(tvurl=="sctv6"){fhid="scxkgw"};//购物
if(tvurl=="sctv7"){fhid="scfnet"};//妇女
if(tvurl=="sctv9"){fhid="scxc"};//乡村
if(tvurl=="kejiao"){fhid="aHR0cDovL20zdTguc2N0di5jb20vdHZsaXZlL1NDVFY4L2luZGV4Lm0zdTg%3D"};//科教
if(tvurl=="kangba"){fhid="kbws"};//康巴
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/nxtv.php?id='+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!--四川成都直播代码-->
if(type=="cdtv2"){
var vid=window.location.href.split('id=')[1];
if(vid=="cdxwzh"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=1'}
if(vid=="cdjjzx"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=2'}
if(vid=="cddssh"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=3'}
if(vid=="cdyswy"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=45'}
if(vid=="cdgg"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=5'}
if(vid=="cdse"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=6'}
      
if(vid=="cdss"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=9'}
if(vid=="cdqc"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=10'}
if(vid=="cdzxxgx"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=11'}
if(vid=="cdmsly"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=12'}
if(vid=="cdrcxf"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=15'}
if(vid=="cdmstf"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=17'}
if(vid=="cdmrgw"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=18'}
if(vid=="jygw"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=560'}
if(vid=="klgw"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=561'}
if(vid=="cdgjyd"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=1152'}

if(vid=="jntv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=556'}
if(vid=="slzh"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=557'}
if(vid=="wjtv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=559'}
if(vid=="gxtv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=722'}
if(vid=="xjtv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=760'}
if(vid=="dyxwzh"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=790'}
if(vid=="pztv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=796'}
if(vid=="pjtv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=828'}
if(vid=="jttv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=840'}
if(vid=="pdxwzh"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=845'}
if(vid=="lqzh"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=882'}
if(vid=="qytv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=910'}
if(vid=="qbjtv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=966'}
if(vid=="cztv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=1257'}
if(vid=="djytv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=1314'}
if(vid=="chyx"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=1319'}
if(vid=="qltv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=1427'}
if(vid=="jjtv"){url='http://www.cditv.cn/api.php?op=live&type=live&catid=192&id=1541'}
u = encodeURIComponent(url);
location.href='http://www.cditv.cn/statics/ckplayer/ckplayer.swf?f='+u+'&s=1&c=0&p=1&v=100&lv=1&wh=16:9';
};
<!--云南电视代码-->
if(type=="yntv"){
if(tvurl=="ynws"){fhid="yunnanweishi"};//卫视
if(tvurl=="ynyl"){fhid="yunnanyule"};//娱乐
if(tvurl=="ynds"){fhid="yunnandushi"};//都市
if(tvurl=="yngg"){fhid="yunnangonggong"};//公共
if(tvurl=="ynse"){fhid="yunnanshaoer"};//少儿
if(tvurl=="ynshzx"){fhid="yunnanshenghuo"};//生活
if(tvurl=="ynys"){fhid="yunnanyingshi"};//影视
if(tvurl=="yngj"){fhid="yunnanguoji"};//国际
document.write('<iframe name="lutv" src="vp/vpx.php?id=http://tvlive.ynradio.com/live/'+fhid+'/playlist.m3u8" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
//str='ckplayer/ckplayer.swf?p=1&v=100&lv=1&f=http://edge2.yntv.cn/channels/yntv/'+tvurl+'/flv:sd/live'
//swfplay(str);
};
<!--贵州直播代码-->
if(type=="gztv"){
var xmlhttp;
if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest()
    } else {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
    }
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState==4 && xmlhttp.status==200){
          var reg=/"stream_url":"(.*?)"/;
          stream_url = reg.exec(xmlhttp.responseText);
          hls = stream_url[1].replace('https','https');
          location.href='eplayer/?id='+hls;
    }
}
    var vid=location.href.split('id=')[1];
    if(vid=="gzws"){url='https://api.gzstv.com/v1/tv/ch01/'};//贵州卫视
    if(vid=="gzgg"){url='https://api.gzstv.com/v1/tv/ch02/'};//贵州公共
    if(vid=="gzwy"){url='https://api.gzstv.com/v1/tv/ch03/'};//贵州影视
    if(vid=="gzsh"){url='https://api.gzstv.com/v1/tv/ch04/'};//贵州生活
    if(vid=="gzfz"){url='https://api.gzstv.com/v1/tv/ch05/'};//贵州法制
    if(vid=="gzkj"){url='https://api.gzstv.com/v1/tv/ch06/'};//贵州科教
    if(vid=="gzjj"){url='https://api.gzstv.com/v1/tv/ch09/'};//贵州经济
    if(vid=="jygw"){url='https://api.gzstv.com/v1/tv/ch10/'};//贵州家有购物
    if(vid=="gzyd"){url='https://api.gzstv.com/v1/tv/ch13/'};//贵州移动
    xmlhttp.open("get", url, true);
    xmlhttp.send();
};
<!--宁夏直播代码-->
if(type=="nxtv"){
if(tvurl=="1"){fhid="nxws"};//宁夏卫视
if(tvurl=="2"){fhid="nxgg"};//宁夏公共
if(tvurl=="3"){fhid="nxjj"};//宁夏经济
if(tvurl=="4"){fhid="nxys"};//宁夏影视
if(tvurl=="5"){fhid="nxse"};//宁夏少儿 http://player.200877926.top/1786/ningxia/ningxia.php?id=
      
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/nxtv.php?id='+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!--陕西直播代码-->
if(type=="sxtv"){
if(tvurl=="1"){fhid="sxtvs1"};//陕西新闻资讯
if(tvurl=="2"){fhid="sxtvs2"};//陕西都市青春
if(tvurl=="3"){fhid="sxtvs3"};//陕西生活
if(tvurl=="4"){fhid="nonglin"};//陕西农林卫视
if(tvurl=="5"){fhid="sxtvs5"};//陕西公共
if(tvurl=="6"){fhid="sxtvs6"};//陕西卫视
if(tvurl=="7"){fhid="sxtvs7"};//陕西体育
document.write('<iframe name="lutv" src="http://player.200877926.top/1786/shaanxi/shaanxi.php?id='+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};

<!--新疆直播代码-->
if(type=="xjtv"){
if(tvurl=="01"){fhid="xjws"};//
if(tvurl=="02"){fhid="xjwyzh"};//
if(tvurl=="03"){fhid="xjhyzh"};//
if(tvurl=="04"){fhid="xjzy"};//
if(tvurl=="05"){fhid="xjwyys"};//
if(tvurl=="06"){fhid="xjys"};//
if(tvurl=="07"){fhid="xjjsh"};//
if(tvurl=="08"){fhid="xjhyzy"};//
if(tvurl=="09"){fhid="xjwyjj"};//
if(tvurl=="10"){fhid="xjty"};//
if(tvurl=="11"){fhid="xjxxfw"};//
if(tvurl=="12"){fhid="xjse"};//
if(tvurl=="13"){fhid="xjjy"};//新疆教育
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/xinjiangtv.php?id='+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};
<!--海南直播代码-->
if(type=="hantv"){
document.write('<iframe name="lutv" src="http://www.zimtv.cn/tv/player/api/hainantv.php?id='+tvurl+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};      
      
      
      
<!----凤凰卫视---->
if(type=="fhws"){/*
if(tvurl=="zwhd"){fhid="https://zb.ios.ifeng.com/live/05QGDA0CIRK/index.m3u8"};//凤凰卫视中文台
if(tvurl=="zxhd"){fhid="https://zb.ios.ifeng.com/live/05QGCOB3T34/index.m3u8"};//凤凰卫视资讯台
*/
if(tvurl=="zwhd"){fhid="http://playtv-live.ifeng.com/live/06OLEGEGM4G.m3u8"};//凤凰卫视中文台
if(tvurl=="zxhd"){fhid="http://playtv-live.ifeng.com/live/06OLEEWQKN4.m3u8"};//凤凰卫视资讯台                                 
if(tvurl=="hkhd"){fhid="http://183.207.249.35/PLTV/3/224/3221226975/index.m3u8"};//凤凰卫视香港台
document.write('<iframe name="lutv" src="vp/vpx.php?id='+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};


<!--其他电视直播代码-->
if(type=="other"){
if(tvurl=="lhws1"){fhid="http://www.lotustv.cc/index.php/index/live.html"};//莲花卫视
if(tvurl=="lhws2"){fhid="http://www.lotustv.cc/index.php/index/live_macau.html"};//莲花卫视
if(tvurl=="ayws"){fhid="live/?id=http://live.mastvnet.com:800/4rlff1m/1024/live.m3u8"};//澳亚卫视 https://live.mastvnet.com:800/4rlff1m/live.m3u8
if(tvurl=="amws"){fhid="live/?id=https://live-wxxcx.mtq.tvmmedia.cn/weixin/live_MSTV.m3u8"};//澳门卫视
if(tvurl=="chaoxian"){fhid="vp/vpx.php?id=https://tv.nknews.org/tvhls/stream.m3u8"};//朝鲜电视
document.write('<iframe name="lutv" src="'+fhid+'" height="100%" width="100%" scrolling="no" border="0" frameborder="0" allowScriptAccess="sameDomain" allowFullScreen="true" ></iframe>');
};

<!--福建、海南直播代码-->
if(type=="hoge"){
str='http://player.hoge.cn/player.swf?width=850px&height=470px&channelId='+tvurl+'&config='+xml+'.xml&sidebarMode=1&allowFullScreen=';
swfplay(str);
};
//福建TV: fjtvlive.xml 海南:188live.xml 黑龙江:177live.xml 03 甘肃:139live.xml
      
<!---64ma直播代码--->
if(type=="64ma1"){
document.write('<span id=live </span>');
document.write('<div class="zhibo">');
document.write('<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tbody>');
document.write('<tr>');
document.write('<td height="100%">');
document.write('<iframe id="play2" name="play" frameborder="0" src="https://live.64ma.com/tv/tv.asp?pid='+tvurl+'&sid=&swd=" width="100%" height="100%" scrolling="yes" border="0" allowtransparency="true"></iframe>');
document.write('</td>');
document.write('<td id="sh" width="9" bgcolor="#171a1d" style="cursor:hand" onclick="showsubmenu(1)">');
document.write('<span id="idFlag"><div class="close" id="sh"><a href="#" hidefocus="true" title="按此切换到精简模式"></a></div></span>');
document.write('</td>');
document.write('<td width="210" height="100%" id="tv_list">');
document.write('<iframe id="tvl" name="tvl" frameborder="0" src="https://live.64ma.com/tv/list.asp?tid=&fid=&swd=" width="100%" height="100%" scrolling="AUTO" border="0" target="play" allowtransparency="true"></iframe>');
document.write('</td>');
document.write('</tr>');
document.write('</tbody></table>');
document.write('</div>')
};

<!--64ma直播-->
if(type=="64ma"){
document.write('<iframe name="yybb" src="http://live.64ma.com/tv/tv.asp?pid='+tvurl+'&user=simon&lm=0" height="103%" width="100%" scrolling="no" border="0" frameborder="0" style="margin-top:-20px;margin-left:-0px;"></iframe>');
};
</script>
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-18 15:14 | 显示全部楼层
这段代码你拿去也没有用吧

点评

搞了2天,api文件夹的弄不清楚,其他的没有问题,主要是文件不全  详情 回复 发表于 2022-9-18 15:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-18 15:33 | 显示全部楼层
GuanlinSir 发表于 2022-9-18 15:14
这段代码你拿去也没有用吧

搞了2天,api文件夹的弄不清楚,其他的没有问题,主要是文件不全

点评

你的网址拿来看看  详情 回复 发表于 2022-9-18 15:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-18 15:33 | 显示全部楼层
tvlive呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-18 15:55 | 显示全部楼层
denglei 发表于 2022-9-18 15:33
搞了2天,api文件夹的弄不清楚,其他的没有问题,主要是文件不全

你的网址拿来看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 00:39

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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