如何在 WPF 中流式传输网络摄像头? [英] How to stream Webcam in WPF?

查看:40
本文介绍了如何在 WPF 中流式传输网络摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

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

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

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

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...

更新 2009-11-06:VideoRenderElement Codeplex 项目有一个关于如何流式传输网络摄像头内容的示例.这个项目看起来非常适合您的要求.

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.

更新 2013-02-18:或者,可以使用 Expression Encoder SDK.例如,您可以查看 WPF-Webcam-Control 文章在 CodeProject 上

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

这篇关于如何在 WPF 中流式传输网络摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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