I want to stream the content of the PictureBox of my Server application to the PictureBox of the Client application.
I'm using .net C# and I followed the example on http://csharpmagics.blogspot.com/.
But the pictureBox on the client remains empty. Here is my code:
Server:
Code: Select all
LibVlc.LibVlc vlc = new LibVlc.LibVlc();
vlc.Initialize();
vlc.VideoOutput = image;
vlc.PlaylistClear();
string[] Options = new string[] { ":sout=#duplicate{dst=std {access=udp,mux=ts,dst=127.0.0.1:12345}}", null};
vlc.AddTarget("C:\\1.asf", Options);
vlc.Play();
Code: Select all
LibVlc.LibVlc vlc = new LibVlc.LibVlc();
vlc.Initialize();
vlc.VideoOutput = pictureBox1;
vlc.PlaylistClear();
string[] options = { ":sout=#duplicate{dst=display,dst=std{access=file,mux=asf,dst=\"C:\\1.asf"}}", null };
vlc.AddTarget("udp://@127.0.0.1:12345", options);
vlc.Play();
Am I missing something? I'm not much of a good coder, but I really need to solve that issue for a little project of mine..
Could you post sample codes for the interop or the marx wrapper? Or at least a little clue? I'm kind of lost here.
Thanks in advance!