Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   Force WMP to play my stream? (http://forums.winamp.com/showthread.php?t=193892)

djSpinnerCee 17th September 2004 16:09

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/

101 17th September 2004 17:04

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.

djSpinnerCee 17th September 2004 17:57

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 :)

djSpinnerCee 17th September 2004 18:04

I'll add that in the DNAS log I see the request from WMP, it transfers exactly 8192 bytes every time?

101 17th September 2004 18:23

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.

djSpinnerCee 17th September 2004 19:13

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?

101 17th September 2004 19:24

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 :up:

djSpinnerCee 17th September 2004 19:46

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 :)


All times are GMT. The time now is 14:00.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.