The abstract superclass for capture outputs that can record captured data to a file.


class AVCaptureFileOutput : AVCaptureOutput


Setting File Output Properties

var delegate: AVCaptureFileOutputDelegate?

The delegate object for the capture file output.

var maxRecordedDuration: CMTime

The longest duration allowed for the recording.

var maxRecordedFileSize: Int64

The maximum size, in bytes, of the data that should be recorded by the receiver.

var minFreeDiskSpaceLimit: Int64

The minimum amount of free space, in bytes, required for recording to continue on a given volume.

var outputFileURL: URL?

The URL to which output is directed.

var recordedDuration: CMTime

Indicates the duration of the media recorded to the current output file.

var recordedFileSize: Int64

Indicates the size, in bytes, of the data recorded to the current output file.

var isRecording: Bool

Indicates whether recording is in progress.

var isRecordingPaused: Bool

Indicates whether recording to the current output file is paused.

Starting, Stopping, Pausing, and Resuming Playback

func stopRecording()

Tells the receiver to stop recording to the current file.

func pauseRecording()

Pauses recording to the current output file.

func resumeRecording()

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


Inherits From

Conforms To

See Also

File Output

protocol AVCaptureFileOutputDelegate

Methods for monitoring or controlling the output of a media file capture.

protocol AVCaptureFileOutputRecordingDelegate

Methods for responding to events that occur while recording captured media to a file.