AVCaptureInput Class Reference

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

Overview

AVCaptureInput is an abstract base-class describing an input data source to an AVCaptureSession object.

To associate an AVCaptureInput object with a session, call addInput: on the session.

AVCaptureInput objects have one or more ports (instances of AVCaptureInputPort), one for each data stream they can produce. For example, an AVCaptureDevice object presenting one video data stream has one port.

Tasks

Accessing the Ports

Properties

ports

The capture input’s ports. (read-only)

@property(nonatomic, readonly) NSArray *ports
Discussion

The array contains one or more instances of AVCaptureInputPort.

Each individual AVCaptureInputPort instance posts an AVCaptureInputPortFormatDescriptionDidChangeNotification when the formatDescription of that port changes.

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