适用于摄像机应用的最佳API [英] Best API for video camera app

查看:89
本文介绍了适用于摄像机应用的最佳API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。如果您的应用主要是视频摄像头应用程序,哪个指令/类将是更好的选择。我看了大约3个不同的类来捕捉视频。我目前正在使用Microsoft.Devices / CaptureDevice来捕获视频。它看起来仅限于我,因为发现
我无法暂停==>恢复录音。缩放怎么样?如果我想确保我的相机功能强大,你能告诉我我想走哪条路吗?哪个指令/类,如果可能的话,一些代码示例如何使用它,也许如何
zoom,焦点等。非常感谢

解决方案

Hello Clint,


您的问题的答案取决于什么开发环境和平台你想要的目标。如果您的目标是Windows Phone 8.1 Runtime或Universal应用程序,则需要使用

MediaCapture
API。如果您的目标是Windows Phone 8.0 Silverlight应用,那么您可能需要使用

VideoCaptureDevice
API。


请记住,这些API都不支持暂停和恢复录制。您必须记录到单独的文件,然后将文件拼接成一个文件。如果您要定位运行时或通用应用,则可以使用
Media.Editing
名称空间。


我希望这有帮助,


James


Hi. Which Directive/Class will be the better choice if your app is mainly a video camera app. I saw about 3 different Classes to capture videos. I'm currently using Microsoft.Devices/CaptureDevice to capture video. It looks limited to me because found out I can't pause==>resume a recording. And what about Zooming? Can you tell me which way I want to go if I want to make sure my camera functionality is powerful? Which directive/class and if possible some code example on how to use it and maybe how to zoom, focus ect. Thank you very much

解决方案

Hello Clint,

The answer to your question depends on what development environment and platform that you want to target. If you are targeting Windows Phone 8.1 Runtime or Universal apps then you will need to use the MediaCapture API. If you are targeting a Windows Phone 8.0 Silverlight app then you will likely need to use the VideoCaptureDevice API.

Keep in mind that neither of these APIs support pause and resume recording. You must record to separate files and then stitch the files together into a single file. If you are targeting a Runtime or Universal app you can combine multiple media files using APIs in the Media.Editing namespace.

I hope this helps,

James


这篇关于适用于摄像机应用的最佳API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆