/// <summary> /// 本地录像 /// </summary> /// <param name="CH"></param> /// <param name="FilePath"></param> /// <param name="Handle"></param> /// <param name="StreamType"></param> /// <param name="Mode"></param> /// <param name="Blocked"></param> public void StartRec(int CH, string FilePath, IntPtr Handle, int StreamType = 0, LinkMode Mode = LinkMode.TCP, bool Blocked = true) { if (m_lRealHandle < 0) { RealPlay(CH, Handle, null, null, null, StreamType, Mode, Blocked); } if (m_lRealHandle < 0) { Error(); } if (Environment.Is64BitProcess) { mRec = HCNetSDKia64.NET_DVR_SaveRealData(this.m_lRealHandle, FilePath); } else { mRec = HCNetSDK.NET_DVR_SaveRealData(this.m_lRealHandle, FilePath); } }
public bool RecordVideo() { string videoFile = GeneratorFileInfo.GenerateSaveFilePath(_cameraInfo.Oupputpath, _deviceInfo.FileExtName, _cameraInfo.CameraId, DateTime.Now); return(HCNetSDK.NET_DVR_SaveRealData(_cameraInfo.PlayHandle, videoFile)); }