Where should I look for an example of how to connect to Icecast from Java? (I have a MySQL/Tomcat application with MP3's in the DB and need to stream them using Java and Icecast.) Thanks, Mike D. _________________________________________________________________ Discover the best of the best at MSN Luxury Living. http://lexus.msn.com/
It's just HTTP (the method is called 'SOURCE' instead of
'GET' or
'POST'). There are some additional headers you could send
('ice-name',
'ice-public', 'ice-url', 'ice-genre',
'ice-description', and
'ice-audio-info'), but they're mostly for directory support.
Make sure you set the Content-Type header to 'application/ogg' (or
'audio/mpeg') though.
On Thursday, 29 July 2004 at 17:19, Mike Dickson wrote:> Where should I look for an example of how to connect to Icecast from Java?
> (I have a MySQL/Tomcat application with MP3's in the DB and need to
stream
> them using Java and Icecast.)
>
>
> Thanks,
>
> Mike D.
You're welcome,
Ad Rock.
Hello, For myself, I'm using JOrbisPlayer, from http://www.jcraft.com/ Regards, Chris Mike Dickson wrote:> Where should I look for an example of how to connect to Icecast from > Java? (I have a MySQL/Tomcat application with MP3's in the DB and > need to stream them using Java and Icecast.) > > > Thanks, > > Mike D. > > _________________________________________________________________ > Discover the best of the best at MSN Luxury Living. http://lexus.msn.com/ > > _______________________________________________ > Icecast mailing list > Icecast@xiph.org > http://lists.xiph.org/mailman/listinfo/icecast > >
<4109E47F.2090701@kezako.net> Message-ID: <BAY16-DAV20Kj5ZWymo00028840@hotmail.com> Let me clarify this a bit more. I need to use a Java stream as the source for a user audio clip, rather than a directory of ogg files or a live ogg stream from a radio station. I need to server up audio clips from Java. I am confused as to the big picture. How does Icecast tell my Java Servlet what it needs to serve up? What is the protocol? How does it say I need xxx.ogg to the Java Servlet? ----- Original Message ----- From: "Iceuse - Kris" <iceuse@kezako.net> To: <icecast@xiph.org> Sent: Thursday, July 29, 2004 11:02 PM Subject: Re: [Icecast] Java Examples> Hello, > For myself, I'm using JOrbisPlayer, from > > http://www.jcraft.com/ > > Regards, > Chris > > Mike Dickson wrote: > > > Where should I look for an example of how to connect to Icecast from > > Java? (I have a MySQL/Tomcat application with MP3's in the DB and > > need to stream them using Java and Icecast.) > > > > > > Thanks, > > > > Mike D. > > > > _________________________________________________________________ > > Discover the best of the best at MSN Luxury Living.http://lexus.msn.com/> > > > _______________________________________________ > > Icecast mailing list > > Icecast@xiph.org > > http://lists.xiph.org/mailman/listinfo/icecast > > > > > > _______________________________________________ > Icecast mailing list > Icecast@xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >
<4109E47F.2090701@kezako.net> <BAY16-DAV20Kj5ZWymo00028840@hotmail.com> Message-ID: <6.0.1.1.2.20040730220352.01d36b80@www.oddsock.org> At 06:19 PM 7/30/2004, you wrote:>Let me clarify this a bit more. I need to use a Java stream as the source >for a user audio clip, rather than a directory of ogg files or a live ogg >stream from a radio station. I need to server up audio clips from Java. > >I am confused as to the big picture. How does Icecast tell my Java Servlet >what it needs to serve up? What is the protocol? How does it say I need >xxx.ogg to the Java Servlet?I think you have it backwards...the general flow is as follows : playlist (mp3/vorbis/etc) ---> source client (ices/ezstream/oddcast/etc) ---> icecast ------> listener1...N Given this, In your case you might be substituting the "playlist" part for your serlvet...but then you'd have to find a source client (or modify one) to get it's stream data from your serlvet. Of course, I may not be understanding what exactly your servlet actually does... oddsock
<6.0.1.1.2.20040730220352.01d36b80@www.oddsock.org> Message-ID: <410B680E.7080108@imux.net> oddsock wrote:> At 06:19 PM 7/30/2004, you wrote: > >> Let me clarify this a bit more. I need to use a Java stream as the >> source >> for a user audio clip, rather than a directory of ogg files or a live ogg >> stream from a radio station. I need to server up audio clips from Java. >> >> I am confused as to the big picture. How does Icecast tell my Java >> Servlet >> what it needs to serve up? What is the protocol? How does it say I need >> xxx.ogg to the Java Servlet? > > I think you have it backwards...the general flow is as follows : > > playlist (mp3/vorbis/etc) ---> source client (ices/ezstream/oddcast/etc) > ---> icecast ------> listener1...N >Look here: http://liveice.sourceforge.net/understanding.html For a couple of diagrams explaining icecast. EvilOverlord