0
我開發了一個流媒體客戶端應用程序,該應用程序必須重現由攝像頭捕獲的圖像。我的問題是,我正在觀看延遲2秒的數據流。我不知道如何控制這從我的代碼。你能幫我嗎?這裏是我的代碼:如何消除流媒體應用程序中的延遲
public Form1()
{
InitializeComponent();
vlcControl1 = new Vlc.DotNet.Forms.VlcControl();
this.vlcControl1.Location = new System.Drawing.Point(225, 65);
this.vlcControl1.Name = "vlcControl1";
this.vlcControl1.Size = new System.Drawing.Size(900, 700);
this.vlcControl1.BackColor = System.Drawing.Color.Black;
this.vlcControl1.Name = "vlcControl2";
this.vlcControl1.Spu = -1;
this.vlcControl1.TabIndex = 0;
this.vlcControl1.Text = "vlcControl2";
this.vlcControl1.VlcMediaplayerOptions = null;
vlcControl1.VlcLibDirectory = new System.IO.DirectoryInfo(ConfigurationManager.AppSettings.Get("pathVLC64").ToString());
this.Controls.Add(this.vlcControl1);
((System.ComponentModel.ISupportInitialize)(this.vlcControl1)).EndInit();
}
string uri = ConfigurationManager.AppSettings.Get("urlVideo").ToString();
string[] options = { ":network-caching=1000" };
vlcControl1.Play(new Uri(uri), options);
}
我試圖改變網絡緩存參數,但它不工作。 謝謝你這麼多