我有诺基亚730,我想让FlashLight工作。但下一次代码崩溃:WindowsPhone 8.1 FlashLight
MediaCapture mc = new MediaCapture();
await mc.InitializeAsync();
if (mc.VideoDeviceController.TorchControl.Supported == true)
{
mc.VideoDeviceController.TorchControl.Enabled = true;
mc.VideoDeviceController.TorchControl.PowerPercent = 100; // here is crash
}
任何想法?由于某些原因,旧版平台(wp 7,wp8)的解决方案完全不起作用。
什么意思是“代码崩溃”?有一些例外吗?如果是,哪个? –
不支持PowerPercent – Ted
[在Windows Phone 8.1中切换手电筒]可能的副本(http://stackoverflow.com/questions/24847510/toggle-flashlight-in-windows-phone-8-1) – fillobotto