Old 2nd November 2003, 20:32   #1
SCANTHISdotCOM
Junior Member
 
Join Date: Oct 2003
Posts: 22
Send a message via AIM to SCANTHISdotCOM
.ASX file

I got my server up, and the address is:

http://24.61.153.101:8000/listen.pls

I'm trying to convert it into a .asx file for users
running windows media player can hear it too.


I used this code to make a .asx file, and tossed it into
my /content folder within the shoutcast directory.

When I load it into windows media player it says loading media, and
then a error comes up and says "Class not registered or something like this". Can someone help me out here?

How would I make this run in real player too?
SCANTHISdotCOM is offline   Reply With Quote
Old 2nd November 2003, 20:34   #2
djmastermind
Forum King
 
djmastermind's Avatar
 
Join Date: Jul 2003
Location: Houston, TX
Posts: 6,813
.. I'm not sure if throwing it into the content directory will do it. Let me just throw you the .asx and .ram bot:

For the .asx (WMP).. put the following in a notepad document and then save it as <whatever>.asx


code:
<asx version="3.0">
<title>TITLE</title>
<entry>
<title>TITLE</title>
<author>AUTHOR</author>
<ref href="http://yourIP:yourPORT/"/>
</entry>
</asx>




Of course, change things to fit your needs.
Note: This only works in WMP 7.1 and up

For the .ram file to open a RealPlayer stream, enter the following into a notepad document:


code:
http://yourIP:yourPORT.rm


Then save that as <whatever>.ram

Simply upload those to your website and link them and they will open in the appropriate player.

-- Michael
djmastermind is offline   Reply With Quote
Old 3rd November 2003, 04:37   #3
SCANTHISdotCOM
Junior Member
 
Join Date: Oct 2003
Posts: 22
Send a message via AIM to SCANTHISdotCOM
Thanks



Test it here:


WMP



REAL
SCANTHISdotCOM is offline   Reply With Quote
Old 9th November 2003, 01:08   #4
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
Hello,

It says AUTHOR in my browser. I am interested in this concept, what can you do so it will pop-up in media player?

Thanks and God Bless!
dwoldo is offline   Reply With Quote
Old 9th November 2003, 01:36   #5
DJHotIce
Forum Loser
(Forum King)
 
DJHotIce's Avatar
 
Join Date: Jan 2003
Location: That place I can't remember the name.
Posts: 4,617
Send a message via AIM to DJHotIce Send a message via Yahoo to DJHotIce
change: <author>AUTHOR</author> to what ever you want like
code:
<author>Dwoldo's Music Mania</author>


hmmm. Might be wrong code but try this one... (this one at some time worked as I used it for my station
code:
<ASX version="3.0">
<Entry>
<ref HREF="http://24.61.153.101:8000/"/>
<title>Dwoldo's Music Mania</title>
</Entry>
</ASX>


btw I allready added in your details for you. Should be Copy Paste.

-DJHotIce
Bounce Multimedia - Professional Web Design
DJHotIce is offline   Reply With Quote
Old 9th November 2003, 01:45   #6
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
Hello,

Odd thing, IE will not launch it in WM, however Opera does. Both versions of the ASX file. Any ideas?

Thanks and God Bless!
dwoldo is offline   Reply With Quote
Old 9th November 2003, 01:50   #7
djmastermind
Forum King
 
djmastermind's Avatar
 
Join Date: Jul 2003
Location: Houston, TX
Posts: 6,813
Yes.. IE does this. One of the reasons I use Opera..

Try right clicking the link and opening the .asx in WMP. Open WMP > File > Open URL > Paste the .asx url there.

-- Michael
djmastermind is offline   Reply With Quote
Old 9th November 2003, 01:51   #8
DJHotIce
Forum Loser
(Forum King)
 
DJHotIce's Avatar
 
Join Date: Jan 2003
Location: That place I can't remember the name.
Posts: 4,617
Send a message via AIM to DJHotIce Send a message via Yahoo to DJHotIce
you haven't changed your file...
Maybe thats why it doesn't work?

-DJHotIce
Bounce Multimedia - Professional Web Design
DJHotIce is offline   Reply With Quote
Old 9th November 2003, 13:56   #9
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
Hello DJHotIce ,

I have, but what happens it is just changes the browsers TITLE tag to Download's Music Mania and does not display anything in the browsers content, and does not load WMP. However, running it is Opera it works just fine.

Any ideas? It would be a problem for a listener to have to Copy and Paste the .ASX URL into WMP.

Thanks and God Bless!
dwoldo is offline   Reply With Quote
Old 9th November 2003, 13:59   #10
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
DJHotIce,

Your streaming links for WMP do not work on your web site, neither does the subdomain. Just letting you know!

Thanks and God Bless!
dwoldo is offline   Reply With Quote
Old 9th November 2003, 14:07   #11
LollipopLustKil
Insomniac
(Forum King)
 
LollipopLustKil's Avatar
 
Join Date: Jul 2003
Location: Ohio
Posts: 3,033
Send a message via AIM to LollipopLustKil
Just for further notice, use the button next time, instead of posting two replies after each other.

************************************************

dwoldo, in IE, press the 'Media' icon at the top, then go to your .ASX file, and see if it says connecting. Sometimes it trys to open in the built in Media Player.

Scotty Doesn't Know
LollipopLustKil is offline   Reply With Quote
Old 9th November 2003, 14:16   #12
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
Hello LollipopLustKil,

Sorry about the Edit thing. No, it does not try to load with Windows Media Bar.

Thanks and God Bless!
dwoldo is offline   Reply With Quote
Old 9th November 2003, 17:13   #13
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Does the webserver have the appropriate mime types for serving the asx?

FesterHead is offline   Reply With Quote
Old 9th November 2003, 18:29   #14
dwoldo
Junior Member
 
Join Date: Sep 2003
Posts: 19
Hello,

It does work now after adding the mime-type. Now it loads, but it says Unknown error and it doesn't seem to be able to play iport

Thanks and God Bless!
dwoldo is offline   Reply With Quote
Old 25th November 2003, 03:36   #15
samroc
Junior Member
 
Join Date: Sep 2003
Posts: 19
Certain ASX file not launched in WMP

I too have come across similar problem. I have 7 links pointing to .asx files on an html page. Clicking 2 of them successfully launch WMP and play. The rest just cause the Abstract section to be displayed in IE. I have tried different stations and same results.

The same .ASX file when downloaded locally on hard drive works when double-clicked, or linked from html point to it on HD.

The fact that I can launch some .asx file from the same web server I think means it's not MIME issue?

Would anyone like to comment on this?
samroc is offline   Reply With Quote
Old 25th November 2003, 06:21   #16
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Please post the asx links.

Then I'll comment.

FesterHead is offline   Reply With Quote
Old 25th November 2003, 14:39   #17
samroc
Junior Member
 
Join Date: Sep 2003
Posts: 19
Here's the link to the page with .asx links:
HTTP://sssh.us/test.htm

NG: WBSU 89.1 The Point 24K LOCAL .ASX
OK: WRMM 101.3 Test 24K LOCAL .ASX
NG: Heart 106.2 - London, UK 20K LOCAL .ASX
NG: Capital Radio - London, UK 20K LOCAL .ASX
NG: NPR 56K WNYC-AM FM 20K
OK: BBC World Service 16K
OK: Mostly Classical 96K LOCAL .ASX
OK: Magna Classical 128K LOCAL .ASX
OK: Gold Oldies 128K .WAX
NG: New Age 128K
OK: 70's Mix 128K .WAX

If you click on those links from the html page on HD all the asx links work. I'd like to focus on the first 2 entries WBSU and WRMM. Both local .ASX files on the web server. one launches WMP, the other just display the astract in IE. Puzzling!
samroc is offline   Reply With Quote
Old 25th November 2003, 15:11   #18
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Example (simple) asx:
code:
<asx version="3.0">
<title>title</title>
<entry>
<title>title</title>
<author>author</author>
<ref href="http://dnas-ip:dnas-portBase/"/>
</entry>
</asx>



Please note the trialing slash after the portBase

*********************

wbsu.asx and wrmm.asx do not have a trailing slash after the portbase.

magna.asx and newage.asx have the trailing slash

mostlyclas.asx appears to point to an Ultravox stream. I don't think this will launch from WMP

The rest (minus the .wax files) point to Windows Media servers ia mms:// links and aren't SHOUTcast DNASs.

FesterHead is offline   Reply With Quote
Old 25th November 2003, 15:55   #19
samroc
Junior Member
 
Join Date: Sep 2003
Posts: 19
Good catch on the missing trailing /. I thought I did check that but I was looking at the moreinfo tag before, not the REF tag.

However, I don't think it was the issue:

1. Neither wbsu nor wrmm has the trailing / and wbsu is NG and wrmm is OK.
2. I added trailing / to both. wbsu remains NG, wrmm still OK.
3. Both .asx files work when double-clicked

Another interesting fact: When you right click on the wbsu.asx link, IE wants to save the file as wbsu.asx HTML file. Right click on wrmm, and it saves as wrmm.asx Windows Media playlist file. It even first offer to save it with wrmm.asf which is wrong. IE is recognizing these files differently and it's consistent with those that launch WMP or just get displayed.

I amended that test html page and added another link to test.asx. Even that one doesn't launch WMP. It's basically your sample file with my REF plugged in. When I click TEST, it displays part of the asx.

I'm starting to believe I might be running into an IE bug.
samroc is offline   Reply With Quote
Old 25th November 2003, 16:27   #20
djmastermind
Forum King
 
djmastermind's Avatar
 
Join Date: Jul 2003
Location: Houston, TX
Posts: 6,813
All of them opened my WMP succesfully. I'm beginning to think this may be a file association problem with IE.

The streams that actually streamed for me were:
  • WBSU 89.1 The Point 24K
  • Capital Radio - London, UK 20K
  • NPR 56K
  • WNYC-AM and FM 20K
  • BBC World Service 16K
  • Gold Oldies 128K
  • New Age 128K
  • 70's Mix 128K
  • TEST

I hope this is at least somewhat helpful. I use Opera as my browser.

-- Michael
djmastermind is offline   Reply With Quote
Old 25th November 2003, 16:38   #21
samroc
Junior Member
 
Join Date: Sep 2003
Posts: 19
Test using Mozilla

I just went back and open that html page with MOzilla. It's worse. Only the following 3 launched WMP:
BBC
WNYC FM
AM

Those 3 are pointing to asx files located external to my web server. But then again wrmm is asx on my web server and yet it works with my IE but not MOzilla.

DJmastermind: If it's IE association issue, then why works on wrmm.asx but not wbsu.asx? That should be at extension level issue, and not content dependent. The fact that Mozilla is not working either makes it even more puzzling!

Interestingly, when Mozilla displays the asx, it always display the entire file as plain text. IE would only display the abstract tab, or the author tag, or blank.
samroc is offline   Reply With Quote
Old 25th November 2003, 17:29   #22
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Yes, Mozilla will display the asx as text.

If IE can't handle the asx, it displays weird stuff (do a view source to see full asx).

I'll try to poke by again later to do some more testing.

FesterHead is offline   Reply With Quote
Old 28th November 2003, 05:14   #23
rgATL
Major Dude
 
Join Date: Feb 2003
Location: ATL, of course.
Posts: 724
Quote:
Originally posted by festerhead
Does the webserver have the appropriate mime types for serving the asx?
What should I do to set the appropriate mime types? If it's not something I can do myself, what is it exactly that I should ask my webhost for?

Thanks,
rg.
rgATL is offline   Reply With Quote
Old 28th November 2003, 15:09   #24
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Via Google:

Setting MIME Types on Web Servers for Use with Windows Media Services

FesterHead is offline   Reply With Quote
Old 29th November 2003, 02:23   #25
samroc
Junior Member
 
Join Date: Sep 2003
Posts: 19
Turned out to be MIME issue

festerhead, after reading the article re: MIME you listed above, I followed the section for Apache and restarted web server. EVERY single link now launches WMP!

What I can't understand is why it works for some but not others before I added that line for the file type asx. I thought that should be a file type issue. Either it works or not work with an extension. Maybe IE's behavior is also part of the problem?

I'm very glad that all the links are now working consistently. Thanks!
samroc is offline   Reply With Quote
Old 17th January 2004, 14:01   #26
RiDiCuLe
Senior Member
 
RiDiCuLe's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 103
ok that looks hard to me... wot about this?

hiya ive looked all thru this topic and its all too difficult for me. every time i try to test my .asx file i get a message cum up and it looks like this



the asx code is as follows:

<ASX version="3.0">
<Entry>
<ref HREF="http://127.0.0.1:6666/"/>
<title>RiDiCuLe Player</title>
</Entry>
</ASX>

(i have tried my original ip number and still it foes not work. i use this '127.0.0.1' coz i have multiple ip numbers on my pc)
you sed about the trailing slash but wot do i do with it?

i have also tried the .ram but had no success
please help me coz its doin my head in. and people are complianing about how they cant listen!

Cheers in advance!


Will
RiDiCuLe is offline   Reply With Quote
Old 28th January 2004, 02:06   #27
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
You cannot use the localhost IP (127.0.0.1). You must use your IP addy that is in your address box in the shoutcast DSP. To find your IP, click HERE Hope this helps


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 1st February 2004, 16:10   #28
tjoyce
Junior Member
 
Join Date: Jan 2003
Location: Pennsylvania, United States, North America.
Posts: 38
Send a message via ICQ to tjoyce Send a message via AIM to tjoyce Send a message via Yahoo to tjoyce
I have this:
<asx version="3.0">
<title>RMI - Radio: Music 'n Interviews [HIGH STREAM 128kbps]</title>
<entry>
<title>RMI - Radio: Music 'n Interviews [HIGH STREAM 128kbps]</title>
<author>DJ-TJ</author>
<ref href="http://68.32.132.41:8005/listen.pls"/>
<copyright>2004 - RMI Internet Radio</copyright>
</entry>
</asx>

what is wrong with it? please help!



***Note: Never mind, figured it out...***

Last edited by tjoyce; 1st February 2004 at 17:33.
tjoyce is offline   Reply With Quote
Old 1st February 2004, 19:54   #29
RiDiCuLe
Senior Member
 
RiDiCuLe's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 103
you have 'listen.pls' in it. do not pu that in just 'http://youriport/'

and note the '/'after the port number


hope this helps



Will
RiDiCuLe is offline   Reply With Quote
Old 2nd February 2004, 22:05   #30
tjoyce
Junior Member
 
Join Date: Jan 2003
Location: Pennsylvania, United States, North America.
Posts: 38
Send a message via ICQ to tjoyce Send a message via AIM to tjoyce Send a message via Yahoo to tjoyce
I figured it out: the problem was the CASTERCLUB.COM embedded WINDOWS MEDIA PLAYER. For your information, their embedded Real player works like a charm, but their Windows Media Player plays the intro file, then the backup file...can't open the stream's URL.
tjoyce is offline   Reply With Quote
Old 3rd February 2004, 00:06   #31
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
How about changing:
<ref href="http://68.32.132.41:8005/listen.pls"/>

To:
<ref href="http://68.32.132.41:8005/"/>

FesterHead is offline   Reply With Quote
Old 3rd February 2004, 06:18   #32
RiDiCuLe
Senior Member
 
RiDiCuLe's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 103
if you search the forums under 'intro file and back-up' and look for my post called 'intro file and back-up plans!'

there is a cool code on how to create an .asx file which acts like a playlist. it plays the intro, stream and back-up.

u then upload your .asx file to a webserver like geocities and have the casterclub embedded windows madia player link to that.


Hope this helps



Will

this is what i use on my radio station.
RiDiCuLe is offline   Reply With Quote
Old 3rd February 2004, 06:20   #33
RiDiCuLe
Senior Member
 
RiDiCuLe's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 103
or just click here to see my post.


Will
RiDiCuLe is offline   Reply With Quote
Old 3rd February 2004, 12:14   #34
Sern
Junior Member
 
Join Date: Feb 2004
Posts: 16
Send a message via AIM to Sern
is there a code to make it into a .wma file?

****************
btw my .asx doesnt work?
<asx version="3.0">
<title></title>
<entry>
<title>LIHC Radio</title>
<author>Host by Alex Zabielski</author>
<ref href="http://68.194.193.215:8000/"/>
</entry>
</asx>

TEST
thats the .asx file link

Last edited by Sern; 3rd February 2004 at 12:33.
Sern is offline   Reply With Quote
Old 3rd February 2004, 14:58   #35
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
SHOUTcast streams mp3.

FesterHead is offline   Reply With Quote
Old 3rd February 2004, 15:12   #36
Sern
Junior Member
 
Join Date: Feb 2004
Posts: 16
Send a message via AIM to Sern
they are all MP3
Sern is offline   Reply With Quote
Old 3rd February 2004, 15:15   #37
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Let me re-phrase:

Q: is there a code to make it into a .wma file?
A: The sources can be a mixture of file formats (including wmas), but the DNAS output will always be an mp3 stream.

FesterHead is offline   Reply With Quote
Old 3rd February 2004, 16:45   #38
Sern
Junior Member
 
Join Date: Feb 2004
Posts: 16
Send a message via AIM to Sern
ohh gotcha, what about my asx code how come thats not working?

*****
next question how can i put the server stats like played songs and song playing things like that on a diffrent website?
Sern is offline   Reply With Quote
Old 3rd February 2004, 17:27   #39
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Looks like the webserver doesn't have the appropriate mime types for serving ASX files.

FesterHead is offline   Reply With Quote
Old 4th February 2004, 01:55   #40
Sern
Junior Member
 
Join Date: Feb 2004
Posts: 16
Send a message via AIM to Sern
would like a geocities?
Sern is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump