sarxos / webcam-capture

The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
http://webcam-capture.sarxos.pl
MIT License
2.28k stars 1.11k forks source link

webCams.get(1).getViewSizes(); list is wrong and camera doesn't work #901

Open Wet-Bandit opened 1 year ago

Wet-Bandit commented 1 year ago

When I call

webCams.get(1).getViewSizes();

I am getting the view sizes for webCam.get(0) and then it doesn't work because it says the Dimension is the wrong size. Seems like this is a bug people are not noticing because they only have the one default (0) camera. Or Windows is doing it.

Same issue appeared in every downloaded version I tried.