public void OnCaptureError(VideoCapture videoCap, ERR_CAPTURE errorCode, object customObject) { if (errorCode == ERR_CAPTURE.EOF) { SetFrame(null); } }
private void OnCaptureErrorNative(IntPtr hVideoCapture, ERR_CAPTURE errorCode, IntPtr notUsed) { if (this.captureErrorCallback != null) { this.captureErrorCallback(this, errorCode, this.customObject); } }