5

I have a collection of mp3 files that I'd like to send to the client in a continuous stream, one after another - something like an internet radio based on a list of mp3 files (assume the list is endless).

What is the best approach? It doesn't matter if the protocol is HTTP or RTSP (popular players support everything anyway).

Can this be done with java servlets + tomcat, or a special server like Icecast is needed?

Roman C
  • 49,761
  • 33
  • 66
  • 176
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
  • i think this was asked before - http://stackoverflow.com/questions/657921/how-to-stream-mp3-using-pure-java – radai Jan 20 '13 at 13:57
  • everything I've seen (including the one you linked), is about the client-side - i.e. how to consume a stream – Bozho Jan 20 '13 at 14:04
  • Is http://www.red5.org helpful? – Tomasz Nurkiewicz Jan 20 '13 at 15:09
  • 1
    Subsonic(http://www.subsonic.org/pages/index.jsp) is a media server software. It is build on Java and is quite popular. You can check the source code (http://sourceforge.net/projects/subsonic/) what they are doing. – zloster Jan 20 '13 at 17:50
  • I forgot about this one also: PS3 media server (http://www.ps3mediaserver.org/). It is also Java-based, the code is here (https://github.com/ps3mediaserver/ps3mediaserver). – zloster Jan 20 '13 at 18:02

1 Answers1

0

you can use a jersey rest server exactly as its says on the answer here

works like a charm

Community
  • 1
  • 1
Dima
  • 8,586
  • 4
  • 28
  • 57