// --------------------------------------------------------------- // add image's files to video public override void DoRecord(VsImage lastFrame) { if (vsEncoder != null && vsEncoder.Recording) { try { // record frame vsEncoder.DoRecord(lastFrame.Image); } catch (Exception err) { // error log logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace);; // stop encoder StopRecord(false); } } }
public override void DoRecord(VsImage lastFrame) { if (vsEncoder == null) { return; } try { // record frame vsEncoder.DoRecord(lastFrame.Image); } catch (Exception err) { // error log logger.Log(LogLevel.Error, err.Message + " " + err.Source + " " + err.StackTrace); // if error stop record StopRecord(); } }