Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.

Knowledgebase article with a example .ASX file.

From SpacialAudio

Jump to: navigation, search

Question:

How can a windows media player launch my SHOUTcast stream from my website?

Answer:

In order for a windows media player to launch a SHOUTcast or MP3 stream you will need to setup a .asx file on your website.

Open a new text document and paste the contents of the following text into a new notepad and save it as listen.asx

<ASX version = "3.0">
<TITLE>Simple ASX Demo</TITLE>
<ENTRY>
<TITLE>An Entry in a Simple ASX</TITLE>
<AUTHOR>Microsoft Corporation</AUTHOR>
<COPYRIGHT>(c)2003 Microsoft Corporation</COPYRIGHT>
<REF HREF = "http://your.shoutcast.url:port"/>
</ENTRY>
</ASX>


Edit the line below by inserting your stream url without the listen.pls at the end:

<REF HREF = "http://your.shoutcast.url:port"/>

Save the file

Note: be sure to save the file with the .asx extension and not .txt.

Upload the listen.asx file to your web host provider.

NOTE: it may be necessary to have the correct mime type set for the .asx extension. You will need to work with your web host provider to get the correct mime type of:

video/x-ms-asf .asx

If you are using .htaccess you may want to move the file to a subdirectory of "listen" so the .htaccess will not cause problems for the rest of the site and will only make local changes to the listen directory.