如何使用现有的相机应用程序(不是使用 MediaCapture 创建一个)并在 windows phone 8.1(WinRT) 中拍照?

How to use existing camera app(not create one using MediaCapture) and take picture in windows phone 8.1(WinRT)?

我知道如何在 windows phone 8.1 中使用 MediaCapture 实现相机捕获。但问题是 我们不能只使用 launchUriAsync() 启动现有的相机应用程序并以参数的形式取回文件路径或文件本身吗?

示例:就像我们尝试使用导入并选择照片应用程序时,我们可以选择拍摄图像。我们不能使用现有的相机应用程序来执行此操作吗? 我们真的应该实现我们自己的分辨率等媒体捕捉吗?

谢谢。

该应用需要使用 MediaCapture API。

Windows Phone 运行时应用无法直接启动相机应用来捕捉和 return 图像。没有与 CameraCaptureTask(Windows Phone Silverlight)或 CameraCaptureUI(Windows 商店应用)类似的 API。

can't we just launch the existing camera app using a launchUriAsync() and get back the path of the file or the file itself in the form of an argument?

在 Windows10 中,有人可以编写提供此功能的相机应用程序服务,但在 8.1 中则不行。

查看构建会话App-to-App Communication: Building a Web of Apps

Should we really have to implement our own media capture with resolution etc?

http://wpdev.uservoice.com 是请求 Windows 开发平台功能的地方。

使用 Windows 10,您应该能够使用 CameraCaptureUI API 捕捉图片,而无需编写自己的媒体捕捉代码。 API 的详细信息可在此处找到:https://msdn.microsoft.com/en-us/library/windows/apps/windows.media.capture.cameracaptureui.aspx