---
title: resumeRecording()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avcapturefileoutput/resumerecording()
---

# resumeRecording()

Resumes recording to the current output file after it was previously paused using pauseRecording().

## Declaration

```swift
func resumeRecording()
```

## Discussion

Discussion This method causes the receiver to resume writing captured samples to the current output file returned by outputFileURL, after recording was previously paused using pauseRecording(). This allows you to record multiple media segments that are not contiguous in time to a single file. In macOS, if this method is called within the captureOutput:didOutputSampleBuffer:fromConnection: delegate method, the first samples written to the current file are guaranteed to be those contained in the sample buffer passed to        that method.

## See Also

### Related Documentation

- [isRecordingPaused](avfoundation/avcapturefileoutput/isrecordingpaused.md)

### Managing recording

- [startRecording(to:recordingDelegate:)](avfoundation/avcapturefileoutput/startrecording(to:recordingdelegate:).md)
- [stopRecording()](avfoundation/avcapturefileoutput/stoprecording().md)
- [pauseRecording()](avfoundation/avcapturefileoutput/pauserecording().md)
