我可以同时使用前置摄像头和主摄像头吗? [英] Can I use front-camera and primary camera at the same time?

查看:108
本文介绍了我可以同时使用前置摄像头和主摄像头吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试同时使用主相机和前置相机.在您在网站上显示的示例中(  http://msdn. microsoft .com/en-us/library/windowsphone/develop/hh202956(v = vs.92).aspx  ) 我发现您调用了cam.Dispose()来释放资源.我想问的是,在创建另一种类型的相机之前,我们是否必须将其丢弃?我可以这样做吗?

I am trying to use the primary camera and the front-facing camera at the same time. In the sample you showed in the website( http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202956(v=vs.92).aspx ) I find you called the cam.Dispose() to release resources. What I want to ask is that before creating another type of camera, do we have to dispose it? Can I do this?

cam1 =新建 Microsoft .Devices.PhotoCamera(CameraType.FrontFacing); cam2 = new Microsoft .Devices.PhotoCamera(CameraType.Primary);

cam1 = new Microsoft.Devices.PhotoCamera(CameraType.FrontFacing); cam2 = new Microsoft.Devices.PhotoCamera(CameraType.Primary);

//,然后在这两个摄像机上捕获帧.

//and then capture frames at these two camera.

cam1.Dispose()

cam1.Dispose()

cam2.Dispose()

cam2.Dispose()

感谢您的帮助!

芳林

推荐答案

文档中没有指出您不能这样做.你试过了吗?
There's noting in the docs that say you can't. Have you tried it?


这篇关于我可以同时使用前置摄像头和主摄像头吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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