尝试检查自动对焦支持时出现异常 [英] Exception when trying to check for auto focus support

查看:75
本文介绍了尝试检查自动对焦支持时出现异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

为了在运行时检查一些相机功能,我使用本网站(XAML)上显示的代码作为我的Windows Phone Silverlight 8.1项目:

http://developer.nokia.com/resources/library/Lumia/how-to-adapt-to -lumia-phone-hardware-features / how-to-availability-of-features-at-runtime.html#toc_Flashforcamera

In order to check some camera features at runtime, I'm using the code shown on this website (XAML) for my Windows Phone Silverlight 8.1 project:
http://developer.nokia.com/resources/library/Lumia/how-to-adapt-to-lumia-phone-hardware-features/how-to-check-availability-of-features-at-runtime.html#toc_Flashforcamera

[.. 。]

[...]

if (mediaCapture.VideoDeviceController.FlashControl.Supported)

[...]

以这种方式检查所有功能(闪光灯,iso,手电筒等)工作正常。但是,当我尝试检查"感兴趣的区域控制"区域中的任何功能时,
我的应用程序在真实设备上崩溃,但在任何8.1模拟器上都没有崩溃。应用程序崩溃的示例编码:

Checking all features in this way (flash, iso, torch, etc.) is working fine. However, when I'm trying to check any of the features in the area of "Regions of Interest Control", my app crashes on a real devices, but not on any of the 8.1 emulators. Example coding, where the app crashes:

mediaCapture.VideoDeviceController.RegionsOfInterestControl.AutoFocusSupported

例外是:

System.Exception:连接到系统的设备无法运行。 (HRESULT异常:0x8007001F)

在此之后,我甚至尝试将所有可用功能添加到我的应用中(除了"网络摄像头"之外) ;),但没有成功。

Following this, I'v even tried to add all available capabilities to my app (in addition to "Webcam"), but without success.

请在下面找到我的手机信息:

Please find below my phone Information:


  • 诺基亚Lumia 620
  • Windows Phone 8.1
  • 操作系统:8.10.14192.280
  • FW:3058.50000.1425.00006

你能帮忙解决吗?这个问题?

Can you help to fix this issue?

谢谢和最好的问候,

Patrick

Thanks and best regards,
Patrick

推荐答案

你应该发布完整的代码。
You should post the full code.


这篇关于尝试检查自动对焦支持时出现异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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