I a开发者_StackOverflowm 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.
I recomend to check this site.It should help you
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
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)
{
}
}
精彩评论