Exemple #1
0
        private void txtCamaraIp_TextChanged(object sender, EventArgs e)
        {
            ResetPerfiles();
            ResetPosiciones();

            _onvifDevice = null;
        }
Exemple #2
0
        public void Destroy()
        {
            this.VideoGrabber.Stop();
            this.VideoGrabber.Dispose();

            if (this.OnvifDevice != null)
            {
                this.OnvifDevice = null;
            }
        }
Exemple #3
0
        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;
        }
Exemple #4
0
        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);
                }
            }
        }