Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();

            CreateCommands();

            //grabber = new HttpGrabber();
            grabber = new DefaultGrabber();

            grabber.Start(new CameraEntity());
            grabber.GrabberSubject.Subscribe(_ => ImageFrame = _.JpegData);

            ptz = new HttpPtz();
            //ptz = new CanonHttpPtz();
            var model = new CameraModel();

            //UpdateInfo(model);
            UpdateDahuaPtzInfo(model);

            ptz.Open(new CameraEntity()
            {
                Model = model,
                //IpAddress = "192.168.100.100",
                Login     = "******",
                Password  = "******",
                IpAddress = "192.168.111.127",
            });

            DataContext = this;
        }