Detect and use default Media player

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

25-Jan-12 15:01
I have a internet Radio and website for it, currently using WMP to start streaming when website opened.

How can I use various Players, by detecting default and launching it on website ?

I hope this makes sense.

Regards

--
Theuns
http://www.boervolkradio.co.za
27-Jan-12 00:27
@Theuns: Not sure I totally understand. Does this article of mine help at all?

http://www.elated.com/articles/html5-audio/

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
27-Jan-12 13:25
Hi Matt. thanks for info, I think though that most people in South Africa still use older browsers etc, but I will see if your article will be able to help with some aspects ?

What I have is 3 Streams coming from my PC to a company who the sends it onto the internet in multiple streams.
I use 16kbps mp3 + 48kbps mp3 + 48kbps AAC Plus encoders.

On my website I then have the following code and it opens WMP



<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
id="player" width="140" height="50">
<param name="url"
value="http://sc4.streamingpulse.net:8010" />
<param name="src"
value="http://sc4.streamingpulse.net:8010" />
<param name="showcontrols" value="true" />
<param name="autostart" value="true" />
<!--[if !IE]>-->
<object type="video/x-ms-wmv"
data="http://sc4.streamingpulse.net:8010"
width="140" height="50">

<param name="src"
value="http://sc4.streamingpulse.net:8010" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
</object>
<!--<![endif]-->
</object>


Problem is not all have WMP, some use Real, Winamp, VLC and various other players etc, and I am not sure what people with Linux do.
Then I also did not have Flash but the streaming company has sent out new code for Flash player that works with mp3 and AAC+

I also have this latest code from my streaming provider for one of my streams in Flash (they sent code for all 3 streams) and wanted to find out how I can have both codes on my website and when someone opens page, their default player can be determined and then one of the ones I have will open stream in their browser ? the more different players one can accomodate the better it would be ? ( like determining different browsers - it needs to determine different players and use appropriate ?)



<script type="text/javascript" src="http://streamingpulse.us:2000/mediacp/system/misc/swfobject.js"></script>
<div id="FLVPFlashPlayer">
<h1>Please Upgrade Your Flash Player</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>

<script type="text/javascript"> var so = new SWFObject("http://streamingpulse.us:2000/mediacp/system/misc/aacplayer/verdbar-aacplayer.swf?r=9350", "aacplayer", "358", "240", "9", "#141414");
so.addParam("wmode", "opaque");
so.addParam('allowscriptaccess','always');
so.addVariable("uid", "eb0e5ecbe2910c576cfdd46feeb7a091");
so.addVariable("playerpath","http://streamingpulse.us:2000/player/conf-87.117.228.94-8052-Boervolk+Radio+Stream/");
so.addVariable("config","config.xml");
so.write("FLVPFlashPlayer");
</script>



Then I also have code from them for cell phones - [ Ipod, BlackBerry, Android, Symbian, phone without downloading anything! ]

I hope you understand what it is i would like to be able to do, I am no coder myself, I copy and paste and try most things, but html I do write, but not 5.

Regards

--
Theuns
http://www.boervolkradio.co.za
30-Jan-12 00:17
@Theuns: I must admit I have very little experience with either WMP or audio streaming, so I'm not sure I can be of much more help. Anyway I hope my article helped

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
30-Jan-12 13:41
Hi Matt

Thanks for the info, it will not solve my problem, but I will keep it for future.

I will keep on looking on net, maybe someone will be able to assist.

Regards

--
Theuns
http://www.boervolkradio.co.za

 
New posts
Old posts

Follow Elated