Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Build a Simple MP3 Player for Your Site
Subject:   How to make this work for streaming media
Date:   2005-04-12 18:48:49
From:   Gary_Burke
I tried substituting the <href> .mp3 file with an http:// address for an Internet Radio Station but that didn't work. What did work, but only for windows, was having the <href> point to an existing .asx file on my server, the embedded code now looks like this:


<script language="JavaScript" type="text/javascript" src="soundpop.js"></script>
<small> href="http://www.radiofreecolorado.net/RFC_Support_Files/RFC_Windows_Media_Listen.asx"
target="_blank"
onclick="javascript:PlayerOpen('Radio Free Colorado 128 kbps',this.href); return false">Windows
Users Click
Here to use Pop-Up Player


The .asx file on my server looks like this:


<asx version="3.0">
<entry>
<ref href="http://66.90.78.124:8090" />
</entry>
</asx>


Where 66.90.78.124:8090 is the external Internet streaming source.


So I now know this pop-up player can be made to work with streaming media. The only question is can a "universal" one be made that will work on Mac and Windows, or does there have to be two different verisons? And if so, what would the other version look like for Mac users?


I think this would be a high demand item.


--Gary