Exemple #1
0
        public override void InitDevice(SDKControlParametes controlParametes)
        {
            switch (EquipmentManufacturers)
            {
            case EquipmentManufacturers.HaiKang:

                Controlable = new NullDevice();
                break;

            case EquipmentManufacturers.LanKa:
                var c = new LanKaControl(controlParametes);
                Controlable = c;
                c.MockTest();

                break;
            }
        }
Exemple #2
0
 public LanKaControl(SDKControlParametes controlParametes)
 {
     this.LanKaDeviceCamare    = controlParametes?.CameraInfoBase;
     this.SDKCalBackHandler    = controlParametes?.SDKCalBackHandler;
     this.LanKaRealPlayCalBack = (x, y) =>
     {
         try
         {
             var ax = Form.FromHandle(x) as AxBLC_IPNC;
             if (ax != null)
             {
                 ax.PlayS("rtsp://" + y + ":8557/H.264");
             }
         }
         catch (Exception e)
         {
             WriteLog.EventLog("PlayCalBack error " + e.Message);
         }
     };
     this.GetDeviceInfoByDeviceID = controlParametes.GetDeviceInfoByDeviceID;
 }
Exemple #3
0
 public override void InitDevice(SDKControlParametes controlParametes)
 {
 }