private void txtCamaraIp_TextChanged(object sender, EventArgs e) { ResetPerfiles(); ResetPosiciones(); _onvifDevice = null; }
public void Destroy() { this.VideoGrabber.Stop(); this.VideoGrabber.Dispose(); if (this.OnvifDevice != null) { this.OnvifDevice = null; } }
private void LoadOnvif() { int port = 0; if (!int.TryParse(txtIpPort.Text, out port)) { txtLogPreview.Text = "Puerto inválido."; } _onvifDevice = new Onvif.OnvifDevice(txtIpHost.Text, port, txtIpUsuario.Text, txtIpPassword.Text); _onvifDevice.OnLog += _onvifDevice_OnLog; }
public FormMain() { InitializeComponent(); videoGrabber.LicenseString = "3262443125200627035110-27abijuschugovar"; videoGrabber.LicenseString = "DTSTDRTSP:4814446211562164240574-75abijuschugovar"; _device = new Onvif.OnvifDevice(onvifHost, onvifPort, onvifUser, onvifPass); var rs = _device.GetPresets(); if (rs.IsSuccess) { foreach (string preset in rs.Presets) { cboPresets.Items.Add(preset); } } }