Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Input and Output Classes

There are five output classes and only one input class belonging to this group.

You can use the methods available in the QTCaptureDeviceInput class to handle input sources for various media devices, such as cameras and microphones. The five output classes provide output destinations for QTCaptureSession objects that can be used to write captured media to QuickTime movies, for example, or to preview video or audio that is being captured. QTCaptureFileOutput, an abstract superclass, provides an output destination for a capture session to write captured media simply to files.

Class

Group

Tasks

Most commonly used methods

QTCaptureAudioPreviewOutput

Input/Output

Represents an output destination for aQTCaptureSession that can be used to preview the audio being captured.

volume, setVolume:, setOutputDeviceUniqueID:

QTCaptureDecompressedVideoOutput

Input/Output

Represents an output destination for a QTCaptureSession object that can be used to process decompressed frames from the video being captured.

setDelegate:, captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:

QTCaptureDeviceInput

Input/Output

Represents the input source for media devices, such as QuickTime files and video previews, to a QTCaptureSession.

initWithDevice:; returns an instance of QTCaptureDeviceInput associated with the given device.

QTCaptureFileOutput

Input/Output

Writes captured media to files and defines the interface for outputs that record media samples to files.

recordToOutputFileURL:, setDelegate:, captureOutput:didFinishRecordingToOutputFileAtURL:forConnections:dueToError:

QTCaptureMovieFileOutput

Input/Output

Represents an output destination for a QTCaptureSession that writes captured media to QuickTime movie files.

recordToOutputFileURL:, setDelegate:, captureOutput:didFinishRecordingToOutputFileAtURL:forConnections:dueToError:

QTCaptureVideoPreviewOutput

Input/Output

Represents an output destination for aQTCaptureSession that can be used to preview the video being captured.

visualContextForConnection:, setDelegate:, captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection:



< Previous PageNext Page > Hide TOC


Last updated: 2007-10-31




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice