How to detect a Laptop Web Camera device Using java

3k Views Asked by At

I am using JMF . I am not able to detect my Laptop Web Camera device using java code . Can anybody help me in doing this ?.

Thanx in advance.

3

There are 3 best solutions below

0
Csabi On

I recomend to check this site.It should help you

0
user489041 On

This doesnt directly say it, but the code and explanation is in there. Or just use JMF Registry that gets installed with JMF.

How to capture video using JMF, but without installing JMF

0
mutaz salah On
public void Capture()
{

    di = CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture (Win32):0");

    ml = new MediaLocator("vfw://0");

    try {
        player=Manager.createRealizedPlayer(ml);
        win.getContentPane().add(player.getVisualComponent(),BorderLayout.CENTER);
        player.start();

    } catch (Exception ex)
    {

    }
}