示例#1
0
        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);
        }
示例#2
0
        public bool StopDownload()
        {
            CHKDVRDevice device = mFactory.GetDevice(IP, UserName);

            if (device != null)
            {
                IRecordFile file = device.GetRecordFile();
                if (file != null)
                {
                    return(file.Stop());
                }
            }
            return(false);
        }
示例#3
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);
        }
示例#4
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);
        }