public override IVideoDevice GetVideoDevice(string ip, int port, string username, string password, bool checkStatus) { CHKDVRDevice device = base.GetVideoDevice(ip, port, username, password, checkStatus) as CHKDVRDevice; if (device != null) { device.GetRecordFile().OnDownProgress += new RECORDFILE_DOWNPROGRESS(DoRecordFileDownProgress); } return(device); }
public bool StopDownload() { CHKDVRDevice device = mFactory.GetDevice(IP, UserName); if (device != null) { IRecordFile file = device.GetRecordFile(); if (file != null) { return(file.Stop()); } } return(false); }
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); }