Le mercredi 19 avril 2006 à 19:17 -0700, Cameron Taggart a écrit : > Anyone know or have a vague idea of how to create an MP3 stream so > that Winamp or iTunes or my SqueezeBox can connect to it? > > I've been working on the SlimProto TCP Protocol, but it is pointless > if I don't have a MP3 stream for it to connect to. The protocol is > just used to control the the SqueezeBox and instruct it to connect to > a URL where it is supposed to find a MP3 steam, such as at > http://192.168.0.5:9000/stream.mp3. > > I'm used to the typical request and response in a web application. > How is a stream response different? > > Cameron >
Your server need to do 3 things : - sending HTTP header with good mime type - sending the MP3 Header with encoding informations - sending the compressed MP3 frames until the client disconnect The way I would do it :) : dump an http reply from an icecast server, dump the MP3 header and look at the values and try to recode the same behaviour.
