Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            AMC.MediaURL = "http://172.23.49.1/axis-cgi/mjpg/video.cgi";

            AMC.MediaType = "mjpeg";

            AMC.MediaUsername = "******";
            AMC.MediaPassword = "******";

            AMC.Play();
            AMC.StretchToFit = true;

            WebRequest request = WebRequest.Create("http://172.23.49.1//axis-cgi/com/ptz.cgi?continuouspantiltmove=-10,-0");

            requesthandling(request);
        }
Esempio n. 2
0
        private async void CAM_Controll()
        {
            AMC.MediaUsername = data.ser_cam_id;
            AMC.MediaPassword = data.ser_cam_pw;
            AMC.MediaURL      = data.ser_cam_url;
            await Task.Delay(1000);

            while (true)
            {
                if (!camController.isCamOn)
                {
                    AMC.Play();
                }
                await Task.Run(new Action(imgStatusCam));

                await Task.Delay(6000);
            }
            ;
        }