Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm working on small home project for video broadcasting. I've found some example and used it LibVlc.cs. I've found some example Example, but it does not works, because needed old version of library 0.8.6. So I found it, but I have exceptions on unmanaged code when I've tried to get components from API. So maybe somebody works with VLC for videobrodcasting I would like if you are Advise any examples.
In main form I've done this:
C#
private void btnStart_Click(object sender, EventArgs e)
      {
          try
          {
              LibVlc vlc = new LibVlc();
              vlc.Initialize();
              vlc.VideoOutput = pictureBox1;
              vlc.PlaylistClear();
              string[] Options = { ":sout=#duplicate{dst=display,dst=std {access=udp,mux=ts,dst=224.100.0.1:1234}}" };
              vlc.AddTarget(@"d:\sample.avi", Options);
              vlc.Play();
          }
          catch (Exception e1)
          {
              MessageBox.Show($"Error!!! {e}");
          }
      }


What I have tried:

I've tried
This example
Posted

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