Search code examples
javavideoaudiostreamwebcam

How to get video and audio streams from web cameras with Java?


How can I get video and audio streams from web cameras with Java (in a cross-platform way)?

For example, we have a computer with 3-4 USB web cameras; we want to get their streams and make them visible in the user interface. How can we perform such a thing? I need code for a simple app which would find ALL cameras on the computer and let us select camera to wach. Can any one, please share such one?


Solution

  • With java media framework JMF or FMJ

    Here is an example with JVM