Using C# Windows 10 is it possible to tell if the video/camera is currently in use by any app?

Viewed 295

I would like to build a windows forms app, or console app that can "ping" the camera to see if it's being used to capture images/video. Is this possible? An example would be that if I'm in a goto-meeting and sharing my camera i could flip a flag in an app.

If so could you share a snippet?

1 Answers

I do not have a specific snippet but maybe I can help you with how I would approach this problem. One way would be to find out what Physical Device Object Name your webcam has. Every process using this holds this name, so if you check that you can see whether any other process uses.

Related