如何在 WPF 中流式传输网络摄像头?

发布于 2024-07-11 09:46:34 字数 49 浏览 4 评论 0原文

我可以通过网络摄像头在 WPF 应用程序中流式传输实时视频吗? 如果是,那么如何?

Can I stream a live video in WPF application from my web cam? If yes, then How?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

歌入人心 2024-07-18 09:46:34

你将不得不使用 DirectX Capture 或其他东西(在 WPF 中不知道,所以直接使用 DirectX API)。

请参阅:WPF 媒体工具包。 它可以抓取Vista Windows桌面管理器DirectX Direct3D共享的Surface,并将其用作WPF中的视觉画笔。 他用它做了一些好事。 看看他的博客 他在其中解释了这一点。

我希望这对您有所帮助...

更新 2009-11-06:
VideoRenderElement Codeplex 项目提供了有关如何流式传输网络摄像头内容的示例。
此项目看起来非常适合您的要求。

2013 年 2 月 18 日更新:
或者,可以使用Expression Encoder SDK。 有关示例,您可以查看 WPF-Webcam-Control 文章在代码项目上

You will have to use DirectX Capture or something (is not in WPF right know, so use DirectX API's directly).

Look at: WPF Media Kit. It can grab the Vista Windows desktop manager DirectX Direct3D shared Surface, and use it as a visual brush in WPF. He does some nice things with it. Look at his blog where he explains it.

I hope this helps you on your way...

UPDATE 2009-11-06:
The VideoRenderElement Codeplex project has an example on how to stream webcam content.
This project looks like it would fit your requirment perfectly.

UPDATE 2013-02-18:
Alternatively one can use the Expression Encoder SDK. For an example you can look at the WPF-Webcam-Control article on CodeProject

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文