我知道如何在 Windows Phone 8.1 中使用 MediaCapture 实现相机捕获。但问题是我们不能只使用 launchUriAsync() 启动现有的相机应用并以参数的形式取回文件路径或文件本身吗?
示例:就像当我们尝试使用导入并选择照片应用程序时,我们可以选择拍摄图像。我们不能使用现有的相机应用程序来执行此操作吗? 我们真的应该实现我们自己的带分辨率的媒体捕获吗?
谢谢。
最佳答案
该应用需要使用 MediaCapture API。
Windows Phone 运行时应用程序无法直接启动相机应用程序来捕获和返回图像。没有与 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?
在 Windows 10 中,有人可以编写提供此功能的相机应用服务,但在 8.1 中则不行。
查看构建 session 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 开发平台请求功能的地方。
关于c# - 如何使用现有的相机应用程序(不是使用 MediaCapture 创建一个)并在 Windows Phone 8.1(WinRT) 中拍照?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30815078/