473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How can introduce live radio streaming on my site

2
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:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Untitled Document</title>
  6. <SCRIPT TYPE="text/javascript">
  7. <!--
  8. function popup(mylink, windowname)
  9. {
  10. if (! window.focus)return true;
  11. var href;
  12. if (typeof(mylink) == 'string')
  13. href=mylink;
  14. else
  15. href=mylink.href;
  16. window.open(href, windowname, 'width=385,height=260,scrollbars=no, borders=no');
  17. return false;
  18. }
  19. //-->
  20. </SCRIPT>
  21. </head>
  22.  
  23. <body>
  24. <a class="link" HREF="page.html"onClick="return popup(this, 'notes')">Tune In</a>
  25. </body>
  26. </html>
--------------------------------------------------------------------------------
This is the code in the pop up page

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>Untitled Document</title>
  6. <SCRIPT TYPE="text/javascript">
  7. <!--
  8. function popup(mylink, windowname)
  9. {
  10. if (! window.focus)return true;
  11. var href;
  12. if (typeof(mylink) == 'string')
  13. href=mylink;
  14. else
  15. href=mylink.href;
  16. window.open(href, windowname, 'width=364,height=239,scrollbars=no,border=no');
  17. return false;
  18. }
  19. //-->
  20. </SCRIPT>
  21.  
  22. </head>
  23.  
  24. <body>
  25. <table border="0" style="border-collapse: collapse" width="100%">
  26. <tr>
  27. <td valign="middle">
  28. <p align="center">
  29. <object id="MediaPlayer" type="application/x-oleobject" height="239"
  30. standby="Please Wait..." width="364"
  31. classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" align="center">
  32. <param name="URL" value="http://www.andyglo.org:21" ref>
  33. <param name="rate" value="1">
  34. <param name="balance" value="0">
  35. <param name="currentPosition" value="240.5692404">
  36. <param name="defaultFrame" value>
  37. <param name="playCount" value="1">
  38. <param name="autoStart" value="-1">
  39. <param name="currentMarker" value="0">
  40. <param name="invokeURLs" value="-1">
  41. <param name="baseURL" value>
  42. <param name="volume" value="50">
  43. <param name="mute" value="0">
  44. <param name="uiMode" value="mini">
  45. <param name="stretchTofit" value="0">
  46. <param name="windowlessvideo" value="0">
  47. <param name="enabled" value="-1">
  48. <param name="enableContextmenu" value="-1">
  49. <param name="fullScreen" value="0">
  50. <param name="SAMIStyle" value>
  51. <param name="SAMILang" value>
  52. <param name="SAMIFilename" value>
  53. <param name="captioningid" value>
  54. <param name="enableErrordialogs" value="0">
  55. <param name="_cx" value="9631">
  56. <param name="_cy" value="6324">
  57. <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>
  58. </object></td>
  59. </tr>
  60. </table>
  61.  
  62. </body>
  63. </html>
--------------------------------------------------------------------------------
Someone should pls correct me if i'm wrong. Thank you
Feb 28 '10 #1
3 3346
Atli
5,058 Expert 4TB
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?
Feb 28 '10 #2
kfsena
2
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.
Mar 2 '10 #3
Atli
5,058 Expert 4TB
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 "application/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).
Mar 2 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Randy Dietz | last post by:
Hi, what would be the best way to set up an internet radio station? Does my MSDN Universal subscription include all the tools I'll need? Thanks, Randy
3
by: Jay Douglas | last post by:
Hello all, Please provide any advice on a venture that is pretty foreign to me: I'm going to have a webcam at a remote location that is capturing live images of a construction site. This webcam...
9
by: Randy Dietz | last post by:
Hi, what would be the best way to set up an internet radio station? Does my MSDN Universal subscription include all the tools I'll need? I'd love to use vb.net unless there are some decent...
1
by: Martin_Hurst | last post by:
Judging by what's going on at LinuxWorld Expo, MySql got an interview, but I don't see any Postgresql presence? Did Postgresql have any workshop or booth there? ----- Forwarded by Martin...
4
by: chix23 | last post by:
Could you give sample codes or suggestions on how to build a web application with live video streaming? Thanks!!!
2
by: Asif | last post by:
Hi all, Can any one help me out about how to do live video streaming in asp.net page similar to YouTube.com? Thanks a lot Asif
4
gregerly
by: gregerly | last post by:
Hello All, I find myself in a position of having a client that wants to stream video from workshops that his company put on, to the company website, in real time, so other people that can't make...
2
by: donnyf | last post by:
Hi guys. I've put together a website ( http://worldwidemediaproject.com ) that is a database of internet streaming tv/radio stations from around the world. I have built the site with all users in...
3
by: Brad | last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and response.binarywrite to send content to the browser. This has worked great for years...
1
luckysanj
by: luckysanj | last post by:
Dear Sir, Can you give me idea about Live Radio Broadcasting. I want to implement the Live Radio Broadcasting link on my web page to play radio on live. So i need basic php code for this. Your...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.