Old 26th October 2002, 22:51   #1
NullPointer
Junior Member
 
Join Date: Oct 2002
Posts: 4
content type & headers

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
NullPointer is offline   Reply With Quote
Old 26th October 2002, 22:55   #2
Sawg
Guest
 
Posts: n/a
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
  Reply With Quote
Old 26th October 2002, 23:20   #3
NullPointer
Junior Member
 
Join Date: Oct 2002
Posts: 4
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.
NullPointer is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

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