且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

直播视频,Windows窗体,C#

更新时间:2023-12-06 14:22:04

如何在窗体上嵌入Windows Media Player控件?请参阅 http://msdn.microsoft.com/en-us/library /bb383953%28v=vs.90%29.aspx [ ^ ]。







根据OP的评论澄清:

请参阅此评论的答案。问题是关于客户端,并且嵌入播放器就是所需要的。其他所有内容都只能在服务器端完成。一些相机在硬件级别实现流协议。通常,您在服务器端软件中执行此操作。这是一个想法:您可以从VideoLAN的源代码中看到它是如何完成的,请参阅:

http: //en.wikipedia.org/wiki/VideoLAN [ ^ ],

http://www.videolan.org/vlc/download- sources.html [ ^ ]。



您确定需要编写自己的代码吗?您可以直接使用VLC(参见上面的参考资料)几乎可以在任何地方传输任何内容。你可以在几乎所有平台上买到这个产品。



-SA
How about embedding of a Windows Media Player control on a Form? See http://msdn.microsoft.com/en-us/library/bb383953%28v=vs.90%29.aspx[^].



Clarification based on a comment by OP:
Please see the answer to this comment. The question was about client side only, and embedding the player is all which is required. Everything else can be done on server-side only. Some cameras implement streaming protocol on hardware level. Normally, you do it in server-side software. Here is one idea: you can see how it's done from the source code of VideoLAN, see:
http://en.wikipedia.org/wiki/VideoLAN[^],
http://www.videolan.org/vlc/download-sources.html[^].

Are you sure you really need to write your own code? You can directly use VLC (see the references above) to stream almost anything almost anywhere. You can get this product for nearly all platforms.

—SA


这是更新的关于.NET的VLC组件绑定的有用信息:

http://sourceforge.net/projects/libvlcnet/ [ ^ ],

https://wiki.videolan.org/C_Sharp/ [ ^ ],

https://wiki.videolan.org/.Net_Interface_to_VLC/ [ ^ ]。



值得注意的是,你可以找到使用WPF和 System.Windows.Forms的组件的材料



-SA
This is the updated useful information on the VLC component binding for.NET:
http://sourceforge.net/projects/libvlcnet/[^],
https://wiki.videolan.org/C_Sharp/[^],
https://wiki.videolan.org/.Net_Interface_to_VLC/[^].

Notably, you can find material for using the component for both WPF and System.Windows.Forms.

—SA