简体   繁体   中英

Stream mp3 using Java technology

**I need to buid distributed computing system that use java technology to access mp3 files stored in seperate servers.

In the user interface layer users can play audio files. In the information processing layer application client implementing with database servers.(where audio and user data stored) In the information processing I need to be able to manage audio files. My questions are,

  1. What is the best framework to get started?
  2. Am I able to use different technologies like SmartGWT, SmartGWT EE, mySQL, JSF together?
  3. What is the best mp3 player that work with java?**

(Assuming your client is a browser)

The easiest way:

  1. On the client side use a Flash player that plays mp3 downloaded via HTTP. You can write your own or pick one on the web (there are plenty available): example .

  2. Serve your mp3 files as static files via a web server, or write Java Servlet that serves this files. In second case you could have more control and implement progressive HTTP download .

I'll only answer question about streaming:

There's the locality-icecast project that implements an icecast streaming server in java, but it was abandoned, so you can pick up the development. You can also take a look at JRoar , it's an icecast server for ogg, but it's generally same thing and you can get some ideas from it too.

This way any player that supports shoutcast/icecast protocol will work with your server.

If you want to write your own player, you can decode mp3 using JavaLayer library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM