Search code examples
javaappletaudio-streamingjava-web-startjavasound

Capturing the user's sound card output in a Java Applet


I'm looking for a way to capture the sound card output of users and stream it to a red5 server via RTMP in real time.

Using audio redirecting, e.g. with the Windows Stereo Mix is not an option, as it is pretty difficult to configure and it doesn't work consistently across configurations and Windows versions.

I'm open for all sorts of solution possibilities in this direction - maybe even with JNI/JNA?

Thanks for your suggestions!


Solution

  • Ok - there is definitely no native way in Java to capture the sound card output out of the browser. It is possible to use the Java Native Interface to write platform-specific code to intercept the line and pass the raw audio data to the applet to further process it.