Search code examples
c#audiovideowebcamcapture

How Do I get list of audio/video and capture devices in C#?


I've spent the last two weeks searching everywhere trying to get even so much as a hint on how to do this. This is my first time asking, and trust me when I say that I do not like to ask for help.

But I am at the end of my rope, all I can find is how to list available audio and video devices using someone else's Framework in C#. All I want to do is list the available audio and video devices connected to ones computer from within C# without any additional 3rd party Frameworks.

If any of you could help with this, I would greatly appreciate it. Like I said, I'm at the end of my rope trying to figure out how to do this.

Thanks!


Solution

  • After Googling for "C# get video capture devices". I ended up at these two CodeProject articles:

    You'll see that there is a lot of COM interop involved. And from the sound of it, I'm not sure you're ready to jump right into that, at it can be a lot of tedious work. I would consider using what is there, and not re-inventing the wheel. After all, they are both in the public domain.

    Additionally, there is this post on StackOverflow which has some interesting links: