Contents

fileOutput(_:didResumeRecordingTo:from:)

Called whenever the output, at the request of the client, successfully resumes a file recording that was paused.

Declaration

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

Parameters

  • output:

    The capture file output that has resumed its paused file recording.

  • fileURL:

    The file URL of the file that is being written.

  • connections:

    An array of Avcaptureconnection objects attached to the file output that provided the data that is being written to the file.

Discussion

Delegates can use this method to be informed when a request to resume 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 resumeRecording() 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