public bool Download(string sFileName, string dFileName) { CHKDVRDevice device = mFactory.GetVideoDevice(IP, 8000, UserName, Password, true) as CHKDVRDevice; if (device != null) { IRecordFile file = device.GetRecordFile(); if (file != null) { return(file.Download(sFileName, dFileName)); } } return(false); }
public bool Download(DateTime startTime, DateTime stopTime, string fileName) { CHKDVRDevice device = mFactory.GetVideoDevice(IP, 8000, UserName, Password, true) as CHKDVRDevice; if (device != null) { IRecordFile file = device.GetRecordFile(); if (file != null) { return(file.Download(Channel, startTime, stopTime, fileName)); } } return(false); }