Example #1
0
        private void DidCaptureFail(VideoCaptureDelegate captureDelegate, NSError error, NSUrl outputUrl)
        {
            // we need to remove reference to the delegate so it can be deallocated
            _videoCaptureDelegate = null;

            DispatchQueue.MainQueue.DispatchAsync(() =>
            {
                if (captureDelegate.RecordingWasInterrupted)
                {
                    _videoRecordingDelegate?.DidInterruptVideoRecording(this, outputUrl, error);
                }
                else
                {
                    _videoRecordingDelegate?.DidFailVideoRecording(this, error);
                }
            });
        }