Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

JMC or JMF or only JavaSound

 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic