如何用C#实现视频直播?

发布于 2024-07-14 21:26:18 字数 220 浏览 3 评论 0 原文

我想将实时视频广播设施插入网站。 我计划使用 silverlight 和 C#,但我在这个主题上是新手。

做这个的最好方式是什么?

提前致谢。

更新:

我有相机。 我希望它捕获它并显示在我的网站上。 居住。 但我不知道我必须在里面做什么。 告诉我有关捕获、流、api、dll 的所有信息,以及我需要知道的任何其他信息。 谢谢。

I want to plug a live video broadcasting facility to a website. I'm planning to use silverlight and C# but I'm very newbie in this topic.

What is the best way to do this?

Thanks in advance.

Update:

I have a camera. I want it to capture it and show on my website. Live. But I have no idea about what I must do inside. Tell me everything about the capturing, streams, api's, dll's, whatever else I need to know. Thanks.

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

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

发布评论

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

评论(2

尴尬癌患者 2024-07-21 21:26:18

如果您使用的是 Windows,您可能需要考虑免费的 Windows Media Encoder 9 SDK (http://www.microsoft.com/windows/windowsmedia/forpros/encoder/features.aspx)。 这个想法是,Windows Media Encoder 允许您使用任何设备作为媒体源(例如视频捕获卡或支持流式传输的摄像机)并将其作为 ASF 流推出,甚至通过 Windows 进行多播/广播媒体服务。

WME SDK 只是 WME 的编程 (COM) 接口。 原则上,您可以自动化编码器并指示它使用您的相机作为源,并将其推送到指定的 UDP 端口或发布点(对于后者,您需要安装了 Windows Media Services 的 Windows Server 2003/2008)。

较新的替代方案是 Microsoft Expression Encoder SDK (http://www.microsoft.com/downloads/details.aspx?FamilyId=9A077A3D-58CE-454C-B486-153F0578BE4A&displaylang=en),它与表达式编码器“对话”并允许您流式传输到 Silverlight 客户端(以及其他客户端),但这里需要注意的是 EE 不是免费的(WME 是免费的)。

If you're on Windows, you may want to consider the free Windows Media Encoder 9 SDK (http://www.microsoft.com/windows/windowsmedia/forpros/encoder/features.aspx). The idea is that Windows Media Encoder allows you to use any device as a media source (say, a video capture card or a streaming-enabled camcorder) and to push it out as an ASF stream, or even to multicast/broadcast it via Windows Media Services.

The WME SDK is simply a programmatic (COM) interface to WME. In principle you can automate the encoder and instruct it to use your camera as a source, and push it out to a specified UDP port or publishing point (for the latter you'll need Windows Server 2003/2008 with Windows Media Services installed).

A newer alternative is Microsoft Expression Encoder SDK (http://www.microsoft.com/downloads/details.aspx?FamilyId=9A077A3D-58CE-454C-B486-153F0578BE4A&displaylang=en), which "talks" to Expression Encoder and allows you to stream out to Silverlight clients (among others), but the caveat here is that EE is not free (WME is).

蓝天 2024-07-21 21:26:18

你有直播吗? 或者那是您需要的部分吗? 如果您已经有一个带有 URI 的直播流,那么您可以使用 Silverlight 来显示它,因为您所需要的只是一个播放器和一个 URI(您可以在任何地方获取播放器,这里有一个 http://sl2videoplayer.codeplex.com)。

如果您没有流,那么您将需要某种机制来捕获视频并进行流传输。 您可以使用 Windows Media Server 进行流式传输。

您能澄清一下您有哪些部件以及您需要什么吗?

do you have a live stream? Or is that the part you need? If you already have a live stream with a URI, then you could use Silverlight to display it as all you need is a player and a URI (you can get a player anywhere, here's one http://sl2videoplayer.codeplex.com).

If you don't have the stream, then what you will need is some mechanism to capture video and stream it. You can use Windows Media Server to do the streaming.

Can you clarify what pieces you have and what you need?

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