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; } }
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; }
public override void InitDevice(SDKControlParametes controlParametes) { }