// This is called when the stream cannot be played private void StreamFailed(object sender, WebEye.Controls.WinForms.StreamPlayerControl.StreamFailedEventArgs e) { if (configStatus == 1) { return; } if (configStatus > 1) { labelOutput.Text = "Please plug a new camera if you want to configure another camera."; configStatus = 0; } else if (configStatus == 0) { labelOutput.Text = String.Format("The address {0} is not occupied by a {1} IP camera with error {2}.", CameraCurrentAddress, ModelNumber, e.ToString()); } progressBar1.Value = 0; buttonConfig.Enabled = false; comboBox1.Enabled = true; textBoxSerialNumber.Enabled = true; CameraCurrentAddress = ""; }
private void StreamPlayerControl1_StreamFailed(object sender, WebEye.Controls.WinForms.StreamPlayerControl.StreamFailedEventArgs e) { streamPlayerControl1.Hide(); MessageBox.Show(e.ToString()); }