DETECTING CAMERA THROUGH CODE
Hello
I have developed an application for real time video processing using JMF. Now my problem is that I would like to make detection of the web camera easy for the user. That is, without he having to go to the JMF Registry, I want to make it possible to detect his web camera. Please help me out. I have tried so many things and nothing seems to have worked.
Thanks in advance.
Regards
Leon.
[423 byte] By [
Leon_Goaa] at [2007-11-27 3:55:45]

# 1
I posted code here a while ago, and there's handy "autoDetect()" methods in there you can use.
See
http://forum.java.sun.com/thread.jspa?forumID=28&threadID=570463
Actually, I'm not sure if the user needs to run the jmfinit program to add their camera to the JMF registry, or whether the
com.sun.media.protocol.vfw.VFWSourceStream.autoDetect ( i );
call will bypass this.
Anyways, if the code detects only one webcam, then it automatically connects. If it detects 2 or more, it offers a dialog box.
regards,
Owen