---
title: "fileOutput(_:didPauseRecordingTo:from:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturefileoutputrecordingdelegate/fileoutput(_:didpauserecordingto:from:)"
---

# fileOutput(_:didPauseRecordingTo:from:)

Called whenever the output is recording to a file and successfully pauses the recording at the request of a client.

## Declaration

```swift
optional func fileOutput(_ output: AVCaptureFileOutput, didPauseRecordingTo fileURL: URL, from connections: [AVCaptureConnection])
```

## Parameters

- `output`: The capture file output that has paused its file recording.
- `fileURL`: The file URL of the file that is being written.
- `connections`: An array of doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureConnection objects attached to the file output that provided the data that is being written to the file.

## Discussion

Discussion This method is called whenever a request to pause recording is actually respected. It is safe for delegates to change what the file output is currently doing (starting a new file, for example) from within this method. If recording to a file is stopped, either manually or due to an error, this method is not guaranteed to be called, even if a previous call to pauseRecording was made. You should not assume that this method will be called on a specific thread, and should make this method as efficient as possible.

## See Also

### Delegate methods

- [fileOutput(_:didStartRecordingTo:from:)](avfoundation/avcapturefileoutputrecordingdelegate/fileoutput(_:didstartrecordingto:from:).md)
- [fileOutput(_:didStartRecordingTo:startPTS:from:)](avfoundation/avcapturefileoutputrecordingdelegate/fileoutput(_:didstartrecordingto:startpts:from:).md)
- [fileOutput(_:willFinishRecordingTo:from:error:)](avfoundation/avcapturefileoutputrecordingdelegate/fileoutput(_:willfinishrecordingto:from:error:).md)
- [fileOutput(_:didFinishRecordingTo:from:error:)](avfoundation/avcapturefileoutputrecordingdelegate/fileoutput(_:didfinishrecordingto:from:error:).md)
- [fileOutput(_:didResumeRecordingTo:from:)](avfoundation/avcapturefileoutputrecordingdelegate/fileoutput(_:didresumerecordingto:from:).md)
