Webcam connection source code

Description

webcam I got a webcam for doing conferencing at work and wanted to do some development with it.  I had the problem of the sample source code I would try out didn't work.  These were examples using WIA.

THEN I found Mark Schmidt's awesome vista gadget using a webcam.  His example uses DirectShow to interface with the camera instead of WIA.  I asked for the source since it was an .Net application and it the fact it actually worked.  Mark cleaned it up and graciously posted it for everyone to check out. 

Finally, I'll be able to entertain myself by making weird faces.

Tag:

C4FNews

The Discussion

  • User profile image
    Neverbirth

    What I've always wanted to see is some code to stream video and audio from a webcam. At most I've been able to send just still captures, and all the code examples I've seen to stream audio gave me tons of problems.

    I've also got a collection of COM controls that allow it, along with their license (they were bought by the company I work for). The problem is they they have a few problems, and are quite old and discontinued.

    I wonder if using DirectShow there is some way to choose a codec and so record audio+video on a video file and stream it over the net.

  • User profile image
    aditya

    can u send me the complete code??its pretty interesting to know..

  • User profile image
    Clint

    @aditya the source is in the MSDN blog post that is linked to.

  • User profile image
    gislaine

    a webcam nao funciona a mesma é integrada

  • User profile image
    Clint

    @gislaine

    translated as "the webcam doesn't work the same is integrated"

    What webcam do you have?

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.