我该如何在C#音频/视频和捕获设备列表? [英] How Do I get list of audio/video and capture devices in C#?

查看:517
本文介绍了我该如何在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.

不过,我在我的绳子结束,所有的我能找到的是如何列出可用的音频和在C#中使用别人的框架视频设备。所有我想要做的就是列出无需任何额外的第三方框架从C#中连接到那些计算机可用的音频和视频设备。

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.

谢谢!

推荐答案

谷歌搜索的C#得到的视频捕获设备。我结束了在这两个CodeProject上的文章:

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

  • DirectShow.NET
  • DirectX.Capture Class Library

您会看到有很多COM互操作的涉及。而且从它的声音,我不知道你准备好正确的跳进那个,它可以将大量繁琐的工作。还有什么我会考虑使用,而不是重新发明轮子。毕竟,他们都在href=\"http://creativecommons.org/licenses/publicdomain/\" rel=\"nofollow\">公共领域中的

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.

此外,还有这个帖子StackOverflow上有一些相关链接:

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

  • Get default audio/video device

这篇关于我该如何在C#音频/视频和捕获设备列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆