I'm using libVLCSharp in my Windows Forms application.
For this I checked out these NuGet packages:
Here is my initialization code snippet:
private static string[] libVLCParams = { "--rtsp-tcp", "--verbose=2" };
private LibVLC libVLC;
private void Initialize() {
Core.Initialize();
libVLC = new LibVLC(libVLCParams);
}
I added a VideoView to my Form1, initialized a new MediaPlayer object for it, then to start the stream to play:
...
VideoView.MediaPlayer.Play(new Media(libVLC, sampleURI, FromType.FromLocation));
...
Here is my log regarding this stream playing: https://pastebin.com/UVD7Juk3
However the stream after the first valid picture corrupts and shows a full green screen:
When I try to play the same stream in VLC program (same PC, same video), it plays smooth and fine.
Here are my VLC settings:
I also have restarted the PC, and my stream sources, but no luck.