cmauri / eviacam

webcam based mouse emulator
GNU General Public License v3.0
145 stars 38 forks source link

Will only open hardware cameras. Does not allow use by software. #48

Open duaneking opened 7 months ago

duaneking commented 7 months ago

I noticed just now that if I create a virtual camera object on my system - for example using the OS virtual camera - to mirror my only input camera to a secondary camera screen, I cannot open that secondary OBS virtual camera in the app.

I just tried to mirror my hardware camera to a virtual device, its not even listed as a input device in viacam that's available even though it's clearly available for every other app on my system, including zoom, discord, etc.

This means that accessibility is by default restricted to people who have multiple cameras, and it also means that some apps just cant be used with it due to this needless device restriction, and while this may not be an issue for many people from a cost perspective it's better for us to be allowed to use software solutions as modern day hardware is more than fast enough to be able to keep up with this, and it would allow accessibility for many more apps.

A quick look at the code at https://github.com/cmauri/eviacam/blob/a4032ed9c59def5399a93e74f5ea84513d2f42b1/creavision/libwebcam/libwebcam.c#L2482 makes me think that maybe there's simply devices that are not being considered that would be otherwise available for opening.

Maybe we're just restricting it to only hardware ID's for hardware cameras based on the code when it should be a larger set of device types?