Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As part of a project I am doing I need to send a video feed from a webcam via the internet (prob using UDP packets) to another computer. The computer that receives the video needs to display the video on a windows form (I'm not currently using WPF) preferably in real time.

What I want to know is if this is possible, and where I could start looking for ideas into how it would do this.
Posted

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[^].

[EDIT]

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
 
Share this answer
 
v3
Comments
madmike159 22-Nov-11 12:06pm    
Is there a way of putting the data from UDP packets into the WMP buffer?
Sergey Alexandrovich Kryukov 22-Nov-11 16:57pm    
Not directly. Do you need real-time video? The server should implement certain streaming protocol on server side, and Windows Media Player simply use appropriate URL.
--SA
Sergey Alexandrovich Kryukov 22-Nov-11 17:06pm    
I updated my solution, please see after [EDIT].
--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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900