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

Rella picture Rella · Mar 26, 2010 · Viewed 29.4k times · Source

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?

Answer

Enrique picture Enrique · Mar 26, 2010

With java media framework JMF or FMJ

Here is an example with JVM