的Windows Phone 8应用程序的CameraCaptureTask没有在Windows 10的工作? [英] CameraCaptureTask of Windows Phone 8 App is not working in Windows 10?
问题描述
我有一个Windows Phone 8的应用程序,这是生活在Windows应用商店。现在,最近我从我的客户之一,得到了抱怨,他们无法捕捉到的照片,照片只能选择从画廊的作品。当他们自己的设备更新到Windows 10,我使用下面的代码
I have a Windows Phone 8 App, which is Live on Windows Store. Now, recently I got a complaint from one of my Client that they are not able to capture Photo, only selection of Photo works from Gallery. This issue is appearing when they updated their device to Windows 10. I am using following code
private void CapturePhoto()
{
CameraCaptureTask cameraCapture = new CameraCaptureTask();
cameraCapture.Completed += (sender, args) =>
{
//checking if everything went fine when capturing a photo
if (args.TaskResult != TaskResult.OK)
return;
args.ChosenPhoto.Position = 0;
string evidenceName = Path.Combine(Constants.IMAGES_FOLDER_PATH, "evidence_" + MCSExtensions.GetDateTimestamp() + ".jpeg");
saveAndDisplayEvidence(args.ChosenPhoto, evidenceName);
};
cameraCapture.Show();
}
我已经在开发Windows 10应用程序的更新,但直到我更新的应用。我要解决这个问题,这样他们就可以用它拍摄照片。
I am already developing Windows 10 App as an update but till I update the app. I need to solve this issue so they can use it for capturing images.
有人建议,如何解决这个问题呢?
Can someone suggest, how to solve this issue?
推荐答案
我和我的应用程序相同的问题也是如此。
你必须创建自己的相机捕获应用
你可以通过以下链接
I had the same issue with my application as well. You have to create your own camera capturing application You can go through the following links
- Advanced Camera Application
- Basic Camera Application.
这篇关于的Windows Phone 8应用程序的CameraCaptureTask没有在Windows 10的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!