要通过单击按钮在 Windows 8 应用程序中使用网络摄像头拍照,我在 c# 中编写了以下代码:
private async void camera_Click_1(object sender, RoutedEventArgs e)
{
cam = new CameraCaptureUI();
await cam.CaptureFileAsync(CameraCaptureUIMode.Photo);
}
现在当我单击按钮时相机应用程序打开了,但它给了我一条消息:
This app needs permission to use your camera
you can change this in app's settings
应该更改哪些应用程序的设置?