How can introduce live radio streaming on my site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kfsena
    New Member
    • Feb 2010
    • 2

    How can introduce live radio streaming on my site

    Hi,
    I really need your halp as soon as possible. I want to introduce live radio streaming on my site. I had a sample code online which i tried but its not working. I will be grateful if any could study the code and help me out.
    Below are the codes.
    --------------------------------------------------------------------------------
    This is the code for the main page that will open the pop up:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
    href=mylink;
    else
    href=mylink.href;
    window.open(href, windowname, 'width=385,height=260,scrollbars=no, borders=no');
    return false;
    }
    //-->
    </SCRIPT>
    </head>
    
    <body>
    <a class="link" HREF="page.html"onClick="return popup(this, 'notes')">Tune In</a>
    </body>
    </html>
    --------------------------------------------------------------------------------
    This is the code in the pop up page

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
    href=mylink;
    else
    href=mylink.href;
    window.open(href, windowname, 'width=364,height=239,scrollbars=no,border=no');
    return false;
    }
    //-->
    </SCRIPT>
    
    </head>
    
    <body>
    <table border="0" style="border-collapse: collapse" width="100%">
    <tr>
    <td valign="middle">
    <p align="center">
    <object id="MediaPlayer" type="application/x-oleobject" height="239"
    standby="Please Wait..." width="364"
    classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" align="center">
    <param name="URL" value="http://www.andyglo.org:21" ref>
    <param name="rate" value="1">
    <param name="balance" value="0">
    <param name="currentPosition" value="240.5692404">
    <param name="defaultFrame" value>
    <param name="playCount" value="1">
    <param name="autoStart" value="-1">
    <param name="currentMarker" value="0">
    <param name="invokeURLs" value="-1">
    <param name="baseURL" value>
    <param name="volume" value="50">
    <param name="mute" value="0">
    <param name="uiMode" value="mini">
    <param name="stretchTofit" value="0">
    <param name="windowlessvideo" value="0">
    <param name="enabled" value="-1">
    <param name="enableContextmenu" value="-1">
    <param name="fullScreen" value="0">
    <param name="SAMIStyle" value>
    <param name="SAMILang" value>
    <param name="SAMIFilename" value>
    <param name="captioningid" value>
    <param name="enableErrordialogs" value="0">
    <param name="_cx" value="9631">
    <param name="_cy" value="6324">
    <embed src="http://www.andyglo.org:21" width="364" height="239" autostart="-1" align="center" url="http://www.andyglo.org:21" rate="1" balance="0" currentposition="240.5692404" defaultframe="value" playcount="1" currentmarker="0" invokeurls="-1" baseurl="value" volume="50" mute="0" uimode="mini" stretchtofit="0" windowlessvideo="0" enabled="-1" enablecontextmenu="-1" fullscreen="0" samistyle="value" samilang="value" samifilename="value" captioningid="value" enableerrordialogs="0" _cx="9631" _cy="6324"></embed>
    </object></td>
    </tr>
    </table>
    
    </body>
    </html>
    --------------------------------------------------------------------------------
    Someone should pls correct me if i'm wrong. Thank you
    Last edited by Atli; Feb 28 '10, 06:17 PM. Reason: Added [code] tags and moved to the JavaScript forum. (Try to pick an approriate forum please!)
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    Define "not working".

    How is it supposed to be working?
    How is it actually working? (Or not working.)

    Are you getting any errors? Any output at all?
    Anything at all that might point us in the direction of your problem?

    Comment

    • kfsena
      New Member
      • Feb 2010
      • 2

      #3
      It is suppose to show a media player where you hear a sound bite from a radio station. But nothing shows at all when i preview it in mozilla. When i preview it in Internet Explorer, the media player shows alright but no sound is heard from a radio station. I was told i have to do some connections but i don't know how to do that. Please help me. Your help is deeply appreciated. Thanak you.

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Are you sure the URL to your stream is correct? (I can't seem to connect to it.)

        As far as I can tell, the "applicatio n/x-oleobject" mime-type is a Windows Media Player thing, so to use it it Mozilla, or any other browser than IE, you would (presumably) need a WMP plug-in (Like this one for Firefox).

        Comment

        Working...