Old 17th September 2004, 16:09   #1
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
Force WMP to play my stream?

Is there a way to force Windows Media Player to play my ShoutCast? I can force my stream to play with RealPlayer by using a .RAM file but is there a similar file that's WMP specific? and is there a WMP specific HTTP content type that I would need to configure on my Apache HTTPd?

I use .ram, .pls and .m3u files with my dynamic DNS IP on one line like this:

****File:http://djspinnercee.servemp3.com:11423/request.pls****
http://djspinnercee.servemp3.com:12345/
****EOF:****

but, this only causes the Listener's Browser-configured handler to launch the sream [except with the .ram, which will launch ReaPlayer], and this could [and often does] vary greatly from what the user wants to use to play the stream.

Thanks in advance djSpinnerNYCee -- http://DigitalMIX.serveMP3.com/
djSpinnerCee is offline   Reply With Quote
Old 17th September 2004, 17:04   #2
101
Major Dude
 
101's Avatar
 
Join Date: Jul 2004
Location: Argentina
Posts: 828
Send a message via ICQ to 101
An asx or wax file.
code:

<asx version="3.0">
<title>whatever</title>
<entry>
<title>whatever</title>
<author>http://whaterverhost/</author>
<ref href="http://dnashost:Port/"/>
</entry>
</asx>


Save it as whatever.asx / wax

Their MIME types are video/x-ms-asf asx and audio/x-ms-wax wax For WMP 7.1 and above only.

Words are very unnecessary, they can only do harm, so enjoy the silence - Depeche Mode
Firemonger Project: Help spread Firefox
101 is offline   Reply With Quote
Old 17th September 2004, 17:57   #3
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
Here's what I got: both when I launched the file from WinExplorer [disk] and via the HTTPd.

WMP does launch, and gives the following message:

"The server recieved invalid data from the client on the control connection"

The file: [I only added the stream address]

code:

<asx version="3.0">
<title>*whatever*</title>
<entry>
<title>*whatever*</title>
<author>*http://djspinnercee.servemp3.com:114...st?genre=radio*</author>
<ref href="http://djspinnercee.servemp3.com:12345/"/>
</entry>
</asx>


The URL, if you'd like to try, is this: http://djspinnercee.servemp3.com:11423/wmptest.asx

I added the MIME type to the Apache mime.types file.

My WMP version is 8.00.00.4487, which may be important.

Thanks in advance, 101

Last edited by djSpinnerCee; 17th September 2004 at 18:13.
djSpinnerCee is offline   Reply With Quote
Old 17th September 2004, 18:04   #4
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
I'll add that in the DNAS log I see the request from WMP, it transfers exactly 8192 bytes every time?
djSpinnerCee is offline   Reply With Quote
Old 17th September 2004, 18:23   #5
101
Major Dude
 
101's Avatar
 
Join Date: Jul 2004
Location: Argentina
Posts: 828
Send a message via ICQ to 101
http://djspinnercee.servemp3.com:114...t?genre=radio*

That's what I get on browser's window when clicking that link, that usually means that the MIME type isn't properly configured but also sometimes you need to restart Apache for this to work. But saving your asx and running it from disk, it works perfect.. you're playing latin music right now. And yes, the right version of WMP matters, but only versions prior to 7.1 won't work with SC, your version is ok.. don't know why you are receiving that error.

Words are very unnecessary, they can only do harm, so enjoy the silence - Depeche Mode
Firemonger Project: Help spread Firefox
101 is offline   Reply With Quote
Old 17th September 2004, 19:13   #6
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
I reset the Apache HTTPd to no avail, but I have an idea that WMP may be caching "old" versions of the asx, because I changed the address to an local one, and to a non-existent one and I get the same thing...

Can I use WinAMP to open either the web or disk location of the .asx to test this theory?
djSpinnerCee is offline   Reply With Quote
Old 17th September 2004, 19:24   #7
101
Major Dude
 
101's Avatar
 
Join Date: Jul 2004
Location: Argentina
Posts: 828
Send a message via ICQ to 101
Quote:
Can I use WinAMP to open either the web or disk location of the .asx to test this theory?
No, WA can't open asx files but clear your browser's cache and WMP should work just fine. Btw.. now your link is working ok for me

Words are very unnecessary, they can only do harm, so enjoy the silence - Depeche Mode
Firemonger Project: Help spread Firefox
101 is offline   Reply With Quote
Old 17th September 2004, 19:46   #8
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
Bingo!!! 101-You da Man!

[MS-RANT] The really crazy thing is that I am using Firefox, and despite the fact that FireFox is getting the updated file from the server EVERY TIME, WMP is "using" a cached copy because the name is the same, AND my HTTPd is providing the correct "expires" headers that should be telling WMP that the file is changed -- Just another example of MS re-writing the book for their own purposes -- one more thing, I never knew that the BROWSER cache and the WMP cache were one in the the same -- heck, I never knew that WMP even cached metafiles --you sure wouldn't know it if you checked the options for WMP, since there is no setting to configure this in any way! -- just plain stupid if you ask me! I thought this kind of incestuous relatioship between OS and MS applications was what got MS in trouble in the first place! -- sadly nothing has changed.....

This thread is done, Thanks 101
djSpinnerCee 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