使用MediaCapture课程时,在视频录制期间打开闪光灯? [英] Turn on flash during video recording when using MediaCapture class?

查看:156
本文介绍了使用MediaCapture课程时,在视频录制期间打开闪光灯?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有WP8.1开发预览版的Lumia 1020。在诺基亚相机中,可以在视频录制期间打开闪光灯(如闪光灯)。但看起来像MediaCapture类不支持。我在视频录制过程中尝试了以下代码。但是在视频录制过程中没有
打开闪光灯。有没有办法通过使用MediaCapture类来做到这一点?谢谢!


this._mediaCapture.VideoDeviceController.FlashControl.Enabled = true;

this._mediaCapture.VideoDeviceController.FlashControl.Auto = false;

解决方案

您将需要使用火炬控件:
http://msdn.microsoft.com/en-us/library/windows/apps/windows。 media.devices.videodevicecontroller.torchcontrol.aspx



I have a Lumia 1020 with WP8.1 dev preview. In Nokia Camera, the flash could be turned on (like a flash light) during video recording. But looks like MediaCapture class doesn't support that. I tried the following code during video recording. But it doesn't turn on the flash during video recording. Is there a way to do that by using MediaCapture class? Thanks!

this._mediaCapture.VideoDeviceController.FlashControl.Enabled = true;
this._mediaCapture.VideoDeviceController.FlashControl.Auto = false;

解决方案

You will need to use the torch control: http://msdn.microsoft.com/en-us/library/windows/apps/windows.media.devices.videodevicecontroller.torchcontrol.aspx


这篇关于使用MediaCapture课程时,在视频录制期间打开闪光灯?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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