Dear, I still could not get a reasonable result. I am not sure whether I understood your comments.
I tried several expressionsbelow, it emits same error: Error while setting up Capture. Also, the connectted camera light is always on, the bild-in camera is always off, no matter [0] or [1] given.
(1): String ss[]=Capture.list();
video=new Capture(this,width,height,ss[0],30);
(2): String ss[]=Capture.list();
video=new Capture(this,width,height,ss[1],30);
(3): String ss[]=Capture.list();
video=new Capture(this,width,height,"[0]",30);
(4): String ss[]=Capture.list();
video=new Capture(this,width,height,"[1]",30);
(5): String ss[]=Capture.list();
video=new Capture(this,width,height,"ss[0]",30);
(6): String ss[]=Capture.list();
video=new Capture(this,width,height,"ss[1]",30);
(7):String ss[]=Capture.list();
video=new Capture(this,width,height,"[0] USB 视频设备-WDM",30);
(8):String ss[]=Capture.list();
video=new Capture(this,width,height,"[1] USB 视频设备-WDM",30);
PS: println( Capture.list() ); give below info:
[0] "USB 视频设备-WDM"
[1] "USB 视频设备-WDM"
What should I do ?
Thank you very much.