::: در حال بارگیری لطفا صبر کنید :::Loading , please wait ...

انجمن کدستانMoisrex

MoisrexMoisrex.rozblog.com
زمان جاریtime : سه شنبه 10 آذر 1405 - 2:16 بعد از ظهر
نام کاربریusername : پسوردpassword : یاor عضویتregister | رمز عبور را فراموش کردمForgot your password?
شما در سایت ما ثبت نام نکرده اید و یا وارد اکانت کاربری خود نشده اید. از شما خواهشمند هستیم You are not log in to site. Please وارد شویدlogin یاor ثبت نام کنیدregister .
adv-coder آنلاین آفلاین
[avatar_answeradv-coder]
[starsadv-coder]
[rankingadv-coder]

ارسال‌هاAsnwers : [Count_Alladv-coder]
عضویتRegistration date : [registerdateadv-coder]
محل زندگیLiving position : [cityadv-coder]
سنAge : [age_answeradv-coder]
شناسه یاهوYahoo ID : [yahooadv-coder]
تعداد اخطارWarnings : [warningadv-coder]
حمایت کردهthanks : [thanksadv-coder]
حمایت شدهThanked : [thanksadv-coder]
پاسخAnswer 7 : ویرایش کد ( آقا محمد کاره خودته فقط )

کد:

<script>function selectchanel(chanelid)

{

var chanelnum;

if (chanelid == 1){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fchannel1&id=mediaplayer&autostart=true&file=irib1-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 2){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fchannel2&id=mediaplayer&autostart=true&file=irib2-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Ftv&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 3){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fchannel3&id=mediaplayer&autostart=true&file=irib3-1&streamer=rtmp%3A%2F%2Flivetv3.irib.ir%2Ftv3&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 4){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fchannel4&id=mediaplayer&autostart=true&file=irib4-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 5){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fchannel5&id=mediaplayer&autostart=true&file=irib5-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Ftv&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 6){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fkhabar&id=mediaplayer&autostart=true&file=irinn-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 7){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Famoozesh&id=mediaplayer&autostart=true&file=learning-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 8){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fquran&id=mediaplayer&autostart=true&file=quran-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 9){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fmostanad&id=mediaplayer&autostart=true&file=mostanad-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 10){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2F%2Ftv%2Fshoma&id=mediaplayer&autostart=true&file=shoma-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 11){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fbazaar&id=mediaplayer&autostart=true&file=bazar-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 12){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fjamejam1&id=mediaplayer&autostart=true&file=jjtvn1-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 13){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fifilm&id=mediaplayer&autostart=true&file=ifilm-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 14){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2F%2Ftv%2Fpresstv&id=mediaplayer&autostart=true&file=presstv-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 15){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fal-alam&id=mediaplayer&autostart=true&file=alalam-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 16){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fvarzesh&id=mediaplayer&autostart=true&file=varzesh-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Fvarzesh&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 17){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2F%2Ftv%2Fsalamat&id=mediaplayer&autostart=true&file=salamat-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 18){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Ftamasha&id=mediaplayer&autostart=true&file=tamasha-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 19){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fnamayesh&id=mediaplayer&autostart=true&file=namayesh-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 20){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fpooya&id=mediaplayer&autostart=true&file=pouya-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Flivepkgr&provider=rtmp&controlbar.position=bottom';}

else if (chanelid == 21){chanelnum = 'netstreambasepath=http%3A%2F%2Fwww1.live.irib.ir%2Fweb%2Flive%2Ftv%2Fnasim&id=mediaplayer&autostart=true&file=nasim-1&streamer=rtmp%3A%2F%2Flivetv.irib.ir%2Ftv&provider=rtmp&controlbar.position=bottom';}

document.getElementById('livetv').innerHTML = '<div id="top-player"><div id="mediaplayer_wrapper" style="position: relative; width: 500px; height: 375px;"><object id="mediaplayer" width="100%" height="100%" type="application/x-shockwave-flash" data="http://www1.live.irib.ir/html/js/jwplayer/jwplayerahmadi/player.swf" bgcolor="#000000" name="mediaplayer" tabindex="0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="seamlesstabbing" value="true" /><param name="wmode" value="opaque" /><param name="flashvars" value="' + chanelnum + '" /></object></div>';

}

</script>

<center><div style="width:416px; height:353px; direction:rtl; font-family:'b yekan'; font-size:12px">

<script src="http://live.irib.ir/html/js/jwplayer/jwplayerahmadi/jwplayer.js" type="text/javascript">

<script src="http://jwpsrv.com/library/+t6HYGdCEeOSJSIACi0I_Q.js">

<script type="text/javascript">

function getUserAgent(){var a=document.getElementById("useragent").value;return(checkOS(a))}function checkOS(b){var d=-1;d=b.search(/android/i);var a=-1;a=b.search(/apple/i);var c=-1;c=b.search(/iphon/i);if(d!=-1){return("android")}else{if(a!=-1||c!=-1){return("apple")}else{return("other")}}}function getIP(){var a=document.getElementById("IP").value;return(checkIP(a))}function checkIP(b){var a="0";if(b>="77.36.128.1"&&b<="77.36.255.254"){a=1}else{if(b>="62.220.119.1"&&b<="62.220.119.254"){a=1}else{if(b>="62.220.120.1"&&b<="62.220.123.254"){a=1}else{if(b>="172.16.0.1"&&b<="172.31.255.254"){a=1}else{if(b>="77.36.153.128"&&b<="77.36.153.143"){a=1}}}}}if(a==1){return"local"}else{return"non-local"}};

</script>

<span id="livetv" style="font-family:'b yekan'; font-size:11px">

<center>جهت مشاهده یکی از شبکه ها را انتخاب و بر روی دکمه (پخش کن) کلیک نمایید

<br>منبع : <a href="http://pi3idl.com" style="text-decoration:none">Pi3iDL</a>

</center></span>

<script type="text/javascript">

var flag = getIP(); var OS1 = getUserAgent(); var OS=OS1; OS1=OS1+""; var file1; var file2; var streamer1; /*if (OS1=="android" && flag=="local"){ file1="rtsp://live.kashef.cdn.liveirib.ir:1935/live-e/irib1-2.sdp";alert("os:android local"+file1);} else if(OS1=="apple" && flag=="local"){ file1="http://live.kashef.cdn.liveirib.ir:1935/live-e/irib1-2.sdp/playlist.m3u8"; alert("os:apple local"+ file1); } else if(OS1=="other" && flag=="local"){ streamer1="rtmp://77.36.153.134/totalstreamer";file2="irib1-1.sdp"; alert("os:other local"+file2);} else if(OS1=="apple" && flag=="non-local"){ alert("os:apple nolocal"); file1="http://live.kashef.cdn.liveirib.ir:1935/live-e/irib1-2.sdp/playlist.m3u8";} else if(OS1=="android" && flag=="non-local"){ alert("os:android nolocal"); file1="rtsp://live.kashef.cdn.liveirib.ir:1935/live-e/irib1-2.sdp";} else */ if(OS1=="apple" ){file1="http://live.kashef.cdn.liveirib.ir:1935/live-e/irib1-2.sdp/playlist.m3u8";} else if( OS1=="android" ){ file1="rtsp://live.kashef.cdn.liveirib.ir:1935/live-e/irib1-2.sdp";} file2="irib1-1.sdp"; streamer1="rtmp://live.kashef.cdn.liveirib.ir/live-e"; jwplayer('mediaplayer').setup({ width: 640, height: 480, provider: "rtmp", streamer: streamer1, autostart: "true", levels: [ { bitrate: 350, file: file2, width: 640} ], modes: [ {type: "flash", src: "/html/js/jwplayer/jwplayerahmadi/player.swf"}, {type: "html5", config: {provider: "http", file: file1, } } ] }); /**/

</script>

<center><form name="frm1">

<select name="chanellist" style="font-family:'b yekan'">

<option value="1">شبکه یک</option>

<option value="2">شبکه دو</option>

<option value="3">شبکه سه</option>

<option value="4">شبکه چهار</option>

<option value="5">شبکه تهران</option>

<option value="6">شبکه خبر</option>

<option value="7">شبکه آموزش</option>

<option value="8">شبکه قران</option>

<option value="9">شبکه مستند</option>

<option value="10">شبکه شما</option>

<option value="11">شبکه بازار</option>

<option value="12">شبکه جام جم 1</option>

<option value="13">شبکه ای فیلم</option>

<option value="14">شبکه پرس تی وی</option>

<option value="15">شبکه العالم</option>

<option value="16">شبکه ورزش</option>

<option value="17">شبکه سلامت</option>

<option value="18">شبکه تماشا</option>

<option value="19">شبکه نمایش</option>

<option value="20">شبکه پویا</option>

<option value="21">شبکه نسیم</option>

</select>

<input style="font-family:'b yekan'" value="پخش کن" onclick="selectchanel(frm1.chanellist.value)" type="button">

</form></center><center>

منبع این ابزار فقط و فقط سایت <a href="http://pi3idl.com" style="text-decoration:none">Pi3iDL.Com</a>است.

</center>

</div></center>

[emzaadv-coder]
دوشنبه 17 شهریور 1393 - 11:24
وب کاربرUser's blog ارسال پیامSend p.m. نقل قولReply سپاس گزارمThanks



moisrex
درباره ماAbout us لینک های ماOur links کلمات کلیدیKeywords
انجمن تخصصی کدستان ، ساخته شده توسط فردی با نام مستعار Moisrex می باشد.This forum designed by a person who called Moisrex.

ایمیلE-mail : Moisrex @ Gmail.com
کدستان,انجمن کدستان,کدنویسی,انجمن پشتیبانی,فروم,رزبلاگ,آموزش کدنویسی,درخواست کد
تمامی حقوق این انجمن مربوط به همین انجمن می باشد | طراحی قالبCopyright (c) By Moisrex , All rights reserved | Desiger : Moisrex