public void StartProc() { string path = System.Windows.Forms.Application.StartupPath + "\\Record\\"; if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } DirectoryInfo directoryInfo = new DirectoryInfo(path); foreach (FileInfo file in directoryInfo.GetFiles()) { file.Delete(); } try { //_writer = new VideoFileWriter(); //_strRecordFilePath = path + Login._UserInfo.Id + System.DateTime.Now.ToString("yyyyMMddHHmm") + ".avi"; //_writer.Open(_strRecordFilePath, 640, 480, 25, VideoCodec.MPEG4); //StartVideCapture(); _strFileName = System.DateTime.Now.ToString("yyyyMMddHHmm"); AnyChatCoreSDK.StreamRecordCtrl(-1, true, 0, 0); AnyChatCoreSDK.SnapShot(-1, 0, 0); } catch (Exception ex) { string strError = ex.ToString(); ErrorCollection.GetInstance().SetErrorInfo(strError); } }