如何将网络摄像头视频导入Metro DirectX游戏 [英] How do you get webcam video into a Metro DirectX game

查看:122
本文介绍了如何将网络摄像头视频导入Metro DirectX游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到一种方法来获取不涉及XAML的网络摄像头视频。

I can't find a way to get webcam video that doesn't involve XAML.

你们想出了一个仅适用于Windows 8的新API,名为  IMFCaptureEngine ,但由于某种原因,这只是Win32,不能在地铁中使用。

You guys came up with a new API just for Windows 8 called IMFCaptureEngine, but for some reason this is Win32 only and can't be used in metro.

IMFCaptureEngine是否会成为经批准的Metro API?

Will IMFCaptureEngine ever become an approved Metro API?

我不介意使用Media Foundation的媒体会话API,但这似乎也只是Win32。

I wouldn't mind using Media Foundation's Media Session API, but that seems to be Win32 only as well.

媒体基金会媒体会议是否会成为经批准的Metro API?

Will Media Foundation Media Session ever become an approved Metro API?

推荐答案

您可以使用
Windows :: Media :: Capture :: MediaCapture
。这与在Xaml应用程序中捕获视频的方式相同:它不限于Xaml或Windows :: UI :: Xaml的一部分。

You can use Windows::Media::Capture::MediaCapture. This is the same way you would capture video in a Xaml app: it is not restricted to Xaml or part of Windows::UI::Xaml.

我看到你已经参与关于如何在DirectX中捕获视频后如何呈现视频的其他线程,所以我会让你继续讨论那些线程。

I see you're already involved in other threads about how to render a video in DirectX once you're captured it, so I'll let you continue that discussion on those threads.

- Rob


这篇关于如何将网络摄像头视频导入Metro DirectX游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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