Webcam detection / management

Is it possible to detect webcams with C# (or .NET in general) and enable/disable them If so, how should I do that


Answer this question

Webcam detection / management

  • Charles Darwin

    The idea is that the software has to find webcams realtime, but it doesn't know whether webcams even are connected. So ideally I can find whether there are webcams connected and then enable or disable them. This entire process should be without user input.

  • pblecha

    I know that panasonic and intellinet webcams have an SDK that you can download, I also guess that each webcam has is own HTTP protocol for requests, so if no SDK and protocol are avail you may sniff the HTTP protocol with a protocol analyzer such as Ethereal (it is freeware).

    A "rude" way may be to do a port scan over the intranet (maybe only some port, not the full range) to see if someone replies....

    Anyway you should write a sort of "driver" for each webcam that isolates you from the protocol details.


  • Josh117

    not entirely possible in .NET

    what exactly do you mean by "detect" webcams can you explain a bit more



  • Webcam detection / management