TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 29, 2024, 04:50:57 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,282
  • Total Topics: 21,227
  • Online today: 59
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 94
  • Total: 94

Dropdown Mutli Channel Live Radio

Started by pendusingh, August 01, 2009, 06:38:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pendusingh

Friends here i am sharing a Dropdown Radio List with Window Media Player... i designed this script by myself... i never go for school for any of languages... i just roughly estimate & designed this script... May be i made some errors... I request to one of PRO or Expert to Please Review the script & write about it... it's safe for people to use it... actually i am using this script on my own site. it's working excellent for me... Still if anyone have any question about it.. you can ask me...

Here is Demo: Punjabi Rulez - Punjabi Forum

what you have to do is... copy this code, & paste in your Block panel... and then save as HTML & JavaScript. Your are good to go... i hope you guys will like this...i am trying to explaint much i can about this thing.... you can add many channels as you want...

<div class="windowbg tp_centerblock_body" style="padding:4px; " id="block17"><div style="overflow: auto;"><TABLE id=AutoNumber1 style="MARGIN-LEFT: auto; MARGIN-RIGHT: auto; BORDER-COLLAPSE: collapse; TEXT-ALIGN: left" borderColor=#ffffff height=108 cellSpacing=0 cellPadding=0 width=500 border=1>

<TBODY>
<TR>
<TD width=756 height=14>
<P align=center><SELECT onchange=PlayIt(this.value) name=player>
<OPTION value=none selected>:: ---- Choose a Radio ---- ::</OPTION>
<OPTION>------- Category(Hip-hop, Remix, Country) --------</OPTION>
<OPTION value=http://anydomain_where_you_Can_get_direct_link.asx> Channel Name (Biterate)</OPTION>
<OPTION value=http://www.bhangra.fm/64k/listen.asx>Punjabi FM (64kbps)</OPTION>
<OPTION>------- Category(Hip-hop, Remix, Country) --------</OPTION>
<OPTION value=mms://adams.wm-live.abacast.com/arabian_radio-city-64>City FM (64kbps)</OPTION>
<OPTION value=http://stream.bollywoodmusicradio.com>Bollywood FM (128kbps)</OPTION>
<OPTION>------- Category(Hip-hop, Remix, Country) --------</OPTION>
<OPTION value=http://server.a-xee.com/khi>FM 100 (32kbps)</OPTION>
<OPTION>----- English Radios -------</OPTION>
<OPTION value=rtsp://wstream5b.di.fm/tophits>Top Hits (64kbps)</OPTION>
<OPTION value=http://www.defjay.de/listen.asx>DJ FM (128kbps)</OPTION>
</SELECT>&nbsp; <SPAN style="FONT-WEIGHT: bold"><BR></SPAN></P>

<P align=center><SPAN style="FONT-WEIGHT: bold">Drop the List &amp; Pick the Channel to Listen it.</SPAN> </P></TD></TR>
<TR>
<TD width=756 height=72>&nbsp;
<DIV id=music style="TEXT-ALIGN: center">
<P>
<OBJECT id=MediaPlayer2 codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" type=application/x-oleobject height=25 standby="Loading Microsoft WindowsÂÃ,® Media Player components..." width=158 classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
                                                                       
                                                                       
                                                                       
                                                                       
                 <embed height="50" width="400" showstatusbar="1" url="" uimode="full" showcontrols="true" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" type="application/x-mplayer2" loop="True" autostart="True"></embed> </OBJECT></P></DIV>
<DIV style="TEXT-ALIGN: center">&nbsp;</DIV></TD></TR>
<TR style="COLOR: rgb(0,204,255)">
<TD width=756 height=14>
<P align=center><STRONG>Live Radio Choose From Drop Down Menu To Play.</STRONG></P>

<P align=center><STRONG>Note: Streams with 128kbps is for DSL and 64/32kbps for Dialup</STRONG></P></TD></TR></TBODY></TABLE>
<DIV style="TEXT-ALIGN: center"></DIV>
<P style="TEXT-ALIGN: center">
<SCRIPT type=text/javascript>
function PlayIt(what){
document.getElementById('music').innerHTML='<object width="350" height="240" '
      +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
      +'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
      +'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
      +'<param name="url" value="'+what+'">'
      +'<param name="uiMode" value="full">'
      +'<param name="autoStart" value="true">'
      +'<param name="loop" value="true">'
      +'<embed type="application/x-mplayer2" '
      +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
      +'showcontrols="true" uimode="full" width="350" height="240" '
      +'src="'+what+'" autostart="1" loop="true">'
+'</object>'; }

</SCRIPT>
</P></div>
</div>
</div>



Already Gud Lock Friends

ccbtimewizard

For script parameters and other HTML-esque syntax, you must double quote all the content that is lapsed to a content tag.

Likewise, you should always use lower-case characters for HTML.

j_jindal1

Thats really a nice code.... but can you please tell me how to add more channels to it.. I searched google but couldn't find anything useful..

IchBin

Did you look at the code j_jindal1 ?

<OPTION value=http://anydomain_where_you_Can_get_direct_link.asx> Channel Name (Biterate)</OPTION>

All you have to do is copy one and change the value.

j_jindal1

You are absolutely right Ichbin, Actually I just couldn't find the FM streaming links.... I tried few links but that didn't workout.. I'm able to add two stations, but I was looking for more.

I should have asked, where to get the FM streaming links for indian hindi music. :) Sorry if it's irrelevent here..

Lesmond

Quote from: j_jindal1 on August 15, 2009, 07:09:21 PM
I should have asked, where to get the FM streaming links for indian hindi music. :) Sorry if it's irrelevent here..

Let me google that for you!

j_jindal1

Quote from: Lesmondâ„¢ on August 15, 2009, 07:25:24 PM
Quote from: j_jindal1 on August 15, 2009, 07:09:21 PM
I should have asked, where to get the FM streaming links for indian hindi music. :) Sorry if it's irrelevent here..

Let me google that for you!
I had asked for direct streaming links for common FM stations.. I was not looking for MP3/music download.... I had posted it here because if someone else is using this code he/she might already have a list of working links. Most of the links I found through google were either dead or not working at all.

Thanks anyways for your reply.. :)

pendusingh

Quote from: j_jindal1 on August 18, 2009, 03:13:58 PM
Quote from: Lesmondâ„¢ on August 15, 2009, 07:25:24 PM
Quote from: j_jindal1 on August 15, 2009, 07:09:21 PM
I should have asked, where to get the FM streaming links for indian hindi music. :) Sorry if it's irrelevent here..

Let me google that for you!
I had asked for direct streaming links for common FM stations.. I was not looking for MP3/music download.... I had posted it here because if someone else is using this code he/she might already have a list of working links. Most of the links I found through google were either dead or not working at all.

Thanks anyways for your reply.. :)


hey buddy if you looking for Bollywood or Punjabi Radios links, i can get you all working links list....

let me know... i will help you out for sure..




ZarPrime

pendusingh,

I know that there is not much incentive for you to supply the information for anything but the Punjabi Radio Links, but this is a nice snippet of code.  However, a lot of people like me would have no use for those links.  However, if there were some other links for places to find Radio Station Links, like links from the USA or Europe, other than those you have supplied, that would be nice.  When you first posted this, I looked around but couldn't find anything that worked for me other than the ones you mentioned in your OP, and they just weren't of interest to me.

ZarPrime

pendusingh

thanks for Reply Zarprime...

I just got idea... why dont you guys try winamp website. there is alot of people run their radio threw winamp. that's what i am being doing... Try Shoutcast & Icecast.... thats the other 2 big resources for Getting the best links for you site.

here is the link for winamp radio list: Winamp Radio List


i hope that will help for you guys. if you guys need any other help let me know my friends.

thanks for Replies

Singh