aspose file tools
The moose likes JavaFX and the fly likes JMC or JMF or only JavaSound Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JavaFX
Reply Bookmark "JMC or JMF or only JavaSound" Watch "JMC or JMF or only JavaSound" New topic
Author

JMC or JMF or only JavaSound

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I want to play sound files (wav, aiff, mp3, ogg,..) of size 50-100 MB through the network.

I have to use other libraries such (tritonous) to add support for mp3 and ogg.

I am using the Java Sound API with its SourceDataLine-Interface
and created a applet which is embedded in JSF.

When I start the browser from localhost, then all works well -
but when starting the browser from another host, the sound stutters and hangs (even I use SourceDataLine instead of Clip)

So my question is:
How can I play audio files without stutters and breaks?
Should I use Java Media Framework with its RTTP-Protocol? (Should I struggling with code such as http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/samples/samples/RTPPlayerApplet.java or should I use http://fmj-sf.net/index.php?
I have no clue?)
OR should I learn JavaFX and use the new JAVA Media Components?

What is the best way to play sound through the network without stutter and breaks?

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JMC or JMF or only JavaSound
 
Similar Threads
audio stream via network
java sound api
what api to edit ID3 tags of .mp3 files?
Canot play an mp3 file using Java Media Framework (JMF)
How to Load jmf.jar in Applet ?