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

标签 c# camera windows-runtime windows-phone-8.1

我知道如何在 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/

相关文章:

c# - 如何在图像上绘制并保存

c# - 依赖失败尝试的异常是返回 bool 值的可接受方式吗?

c# - 如何在 Windows 8 中使用 StreamWriter 写入文件?

c# - 2维结构表

iOS 10 相机 View 显示 API_Cancel_Title 而不是取消

c++ - OpenGL 相机方向

c++ - 强制Qt摄像机视频格式

javascript - 带有多字节文件和 JavaScript 的 Windows 应用商店应用程序中的 ReadTextAsync

c# - 如何在 WPF 中将多个组合框与一个数据源一起使用?

c# - 在 asp.net 中执行存储过程时出错