为什么Windows只允许一个应用程序访问网络摄像头? [英] Why does Windows only allow one application to access the webcam?

查看:1214
本文介绍了为什么Windows只允许一个应用程序访问网络摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在C#示例应用程序的摄像头,并且我发现应用程序不能在Skype的或ooVoo的或任何其他应用程序正在运行的同时运行? (反之亦然)为什么申请获得独占锁在一个WEBC

I've been trying to make a sample webcam app in c#, and I discovered the app cannot run at the same time Skype or Oovoo or any other application is running? (and vice versa) Why do applications get exclusive locks over a webc

推荐答案

视频拍摄的API添加图层时分享来自时间视频硬件在性能方面是不合理的。此外,随着2+应用带摄像头的工作一会,使他们在某些方面,这两个都满意的采集格式达成一致。因此,它被做了最简单,直接的方式:你抓起相机,它是你的,你可以将它设置为自己的需要。但是别人会等你来释放硬件之前,任何人都可以使用它。

Video capture APIs come from time when adding layers to share video hardware was unreasonable in terms of performance. Also, with 2+ apps working with a camera one would have to make them agree on capture format in some way that both are satisfied. So it was made the simplest and straightforward way: you grabbed the camera, it's yours and you can set it up for your own needs. However others would wait for you to release the hardware before anyone else can use it.

您可以发现,共享一个摄像头,这在内部抓起独有然后第三方软件公开虚拟摄像头,可共享的。这种折衷的灵活性表现。

You can find third party software that shares a camera, which internally grabs it exclusively and then exposes virtual camera that is shareable. This trades off performance for flexibility.

音频的API也被锁定硬件完全前一段时间,但随后在推出硬件抽象层共享硬件的一些点的OS API,做混合从幕后多个应用程序。

Audio APIs were also locking hardware exclusively some time ago, but then at some point OS APIs introduced hardware abstraction layers to share hardware and do mixing from multiple applications behind the scene.

这篇关于为什么Windows只允许一个应用程序访问网络摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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