PDA

View Full Version : content type & headers


NullPointer
26th October 2002, 21:51
I'm trying to develop a Java Servlet which outputs streaming audio. I got it to work by writing the URL in WinAmp's location window (CTRL + L) but I can't get it to work through my browser. Other commercial streaming audio links open up my winamp automatically while my server asks me to save the file. Any idea what header information I need to specify in order to tell the broswer to load with Winamp ???

Also, my information tags are non-existent. When I play audio through my servlet, it does not display the song name or even the length. I guess I have to also specify certain headers for this as well, any ideas which?

thanks for any help

Sawg
26th October 2002, 21:55
SHOUTcast generates a playlist file (.pls) which is associated with Winamp, that's why the browser nads the file to Winamp.

For stream information you need to add the ICY headers:

http://forums.radiotoolbox.com/viewtopic.php?t=74

NullPointer
26th October 2002, 22:20
Thanks Sawg, that header info will prove useful.

I'm playing around with generating a playlist file and sending that over network. No luck yet. My content type header must still be wrong.