iOS Reference Library Apple Developer
Search

AVCaptureFileOutput Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AVFoundation.framework
Availability
Available in iOS 4.0 and later.
Declared in
AVCaptureOutput.h

Overview

AVCaptureFileOutput is an abstract sub-class of AVCaptureOutput that describes a file output destination to an AVCaptureSession. You use an instance of its concrete subclass, AVCaptureMovieFileOutput, to save capture output to a QuickTime movie file.

Tasks

Managing Recording

Configuration

Information About Output

Properties

For more about Objective-C properties, see “Properties” in The Objective-C Programming Language.

maxRecordedDuration

The longest duration allowed for the recording.

@property(nonatomic) CMTime maxRecordedDuration

Discussion

If the limit is reached, outputFileURL is set to nil, and the captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error: delegate method is invoked with an appropriate error.

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

maxRecordedFileSize

The maximum file size allowed for the recording.

@property(nonatomic) int64_t maxRecordedFileSize

Discussion

If the limit is reached, outputFileURL is set to nil, and the captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error: delegate method is invoked with an appropriate error.

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

minFreeDiskSpaceLimit

The minimum available free disk space that must be available for recording to continue.

@property(nonatomic) int64_t minFreeDiskSpaceLimit

Discussion

If the limit is reached, outputFileURL is set to nil, and the captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error: delegate method is invoked with an appropriate error.

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

outputFileURL

The URL to which output is directed. (read-only)

@property(nonatomic, readonly) NSURL *outputFileURL

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

recordedDuration

The total duration recorded to the current output file. (read-only)

@property(nonatomic, readonly) CMTime recordedDuration

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

recordedFileSize

The total file size recorded to the current output file. (read-only)

@property(nonatomic, readonly) int64_t recordedFileSize

Discussion

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

recording

Indicates whether recording is in progress.

@property(nonatomic, readonly, getter=isRecording) BOOL recording;

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

Instance Methods

startRecordingToOutputFileURL:recordingDelegate:

Starts recording to a given URL.

- (void)startRecordingToOutputFileURL:(NSURL *)outputFileURL recordingDelegate:(id < AVCaptureFileOutputRecordingDelegate >)delegate

Parameters
outputFileURL

The URL to which output is directed.

delegate

A object to serve as delegate for the recording session.

Discussion

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h

stopRecording

Stops recording.

- (void)stopRecording

Availability
  • Available in iOS 4.0 and later.
Declared In
AVCaptureOutput.h



Last updated: 2010-04-13

Did this document help you? Yes It's good, but... Not helpful...