我正在尝试从这个 rtsp url 流式传输视频。当我运行应用程序时,我没有收到任何错误,但视频没有呈现。我可以在其他应用程序上查看此流,但不能在此应用程序上查看。请在下面查看我的代码:
private void Form1_Load(object sender, EventArgs e)
{
vlcControl1 = new VlcControl();
vlcControl1.BeginInit();
vlcControl1.VlcLibDirectory = new DirectoryInfo(@"C:\Program Files (x86)\VideoLAN\VLC");
vlcControl1.VlcMediaplayerOptions = new[] { "-vv" };
vlcControl1.EndInit();
//Controls.Add(this.vlcControl1);
string[] options = { ":network-caching=30" };
vlcControl1.Play(new Uri("rtsp://Admin:tplex1234@172.23.111.102:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif"), options);
}