eduramiba / webcam-capture-driver-native

Native driver for Webcam Capture API
25 stars 8 forks source link

Open multiple webcam #2

Closed pacioc193 closed 1 year ago

pacioc193 commented 2 years ago

First of all great library.

I've problem open multiple webcam. Untill 2 webcam everythings is fine... i need to open 6. Error is the following :

Exception in thread "main" com.github.sarxos.webcam.WebcamLockException: Webcam USB has already been locked

When no use your driver everythings is working well...

Any ideas?

eduramiba commented 2 years ago

Not sure, can you share your code? Make sure to properly open/close different cameras and not open a same camera twice at the same time.

pacioc193 commented 2 years ago

image USB Id : image

Problem could be fixed removing manually the lock by adding :

image

eduramiba commented 1 year ago

Great, thanks, I dit not know about this lock before and find it unnecessary. Will add the lock disable to the example.