Exemple #1
0
 private void axCamImgCtrl1_InfoChanged(object sender, AxIMGCTRLLib._ICamImgCtrlEvents_InfoChangedEvent e)
 {
 }
Exemple #2
0
 private void axCamImgCtrl1_InfoChanged(object sender, AxIMGCTRLLib._ICamImgCtrlEvents_InfoChangedEvent e)
 {
     Debug.WriteLine("========info changed" + e.infoConn.AlarmInfo);
 }
Exemple #3
0
 private void axCamImgCtrl1_InfoChanged(object sender, AxIMGCTRLLib._ICamImgCtrlEvents_InfoChangedEvent e)
 {
     //https://appcollection.googlecode.com/svn/trunk/RemoteImaging
 }
Exemple #4
0
        private void StartRecordInternal(CameraInfo cam, AxIMGCTRLLib.AxCamImgCtrl axCamImgCtrl)
        {
            axCamImgCtrl.CamImgCtrlStop();

            System.Diagnostics.Debug.WriteLine(axCamImgCtrl.Tag);

            axCamImgCtrl.ImageFileURL = @"liveimg.cgi";
            axCamImgCtrl.ImageType = @"MPEG";
            axCamImgCtrl.CameraModel = 1;
            axCamImgCtrl.CtlLocation = @"http://" + cam.Location.Host;
            axCamImgCtrl.uid = "guest";
            axCamImgCtrl.pwd = "guest";
            axCamImgCtrl.RecordingFolderPath
                = Path.Combine(Util.GetVideoOutputPath(), cam.Id.ToString("D2"));
            axCamImgCtrl.RecordingFormat = 0;
            axCamImgCtrl.UniIP = this.axCamImgCtrl1.CtlLocation;
            axCamImgCtrl.UnicastPort = 3939;
            axCamImgCtrl.MulticastPort = 34344;
            axCamImgCtrl.MCIP = "239.136.50.230";
            axCamImgCtrl.ComType = Properties.Settings.Default.SanyoCommType; //multi:1, udp:2, http:0

            if (Properties.Settings.Default.Live)
            {
                axCamImgCtrl.CamImgCtrlStart();
                axCamImgCtrl.CamImgRecStart();

            }
        }