/// <summary> /// Cleanup this instance. /// </summary> public void Cleanup() { if (!isEnabled) { return; } frameTexture = null; frameRenderTexture = null; frameCubemap = null; frameQueue = null; frameQueueLock = null; videoCaptureCompleteDelegate = null; capturedFrameCount = 0; encodedFrameCount = 0; if (File.Exists(DestinationPath)) { File.Delete(DestinationPath); } LibVideoCaptureAPI_Clean(libAPI); }
/// <summary> /// Register a delegate to be invoked when the video is complete. /// </summary> /// <param name='del'> /// The delegate to be invoked when complete. /// </param> public void RegisterCaptureCompleteDelegate(VideoCaptureCompleteDelegate del) { videoCaptureCompleteDelegate += del; }