示例#1
0
        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);
        }
示例#2
0
        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);
        }