(webcam) from other apps

I have an application that captures an image from a webcam.

I noticed that if I have Microsoft LifeCam installed on my computer, when I start the device from C #, Windows will automatically launch LifeCam.

Obviously the easy way is to uninstall LifeCam, but is there a way to lock the device just for my app? The reason is that I set the image size, brightness, exposure, etc., and when LifeCam starts, all my settings will be set to default.

+3


source to share


1 answer


Not that I know. LifeCam most likely uses DirectShow to access the camera, and while some directshow filters allow concurrent access, there is nothing in the DirectShow API that allows another application to try to instantiate the driver. What usually happens is that the second application gets a bunch of errors saying "Device in use", but sometimes it doesn't.



I find it best to simply uninstall the lifecam software.

+1


source







All Articles