Next Page > Hide TOC

QTCaptureDeviceInput Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/QTKit.framework
Availability
Available in QuickTime 7.2.1 and later.
Declared in
QTCaptureDeviceInput.h
Related sample code

Overview

This class represents the input source for media devices, such as cameras and microphones. Instances of QTCaptureDeviceInput are input sources for QTCaptureSession that provide media data from devices connected to the computer. Devices used with QTCaptureDeviceInput can be found using the QTCaptureDevice class. A QTCaptureDevice must be successfully opened using the open: method before being used in a QTCaptureDeviceInput.

Tasks

Capturing Device Input

Class Methods

deviceInputWithDevice:

Returns an autoreleased instance of QTCaptureDeviceInput associated with the given device.

+ (id)deviceInputWithDevice:(QTCaptureDevice *)device

Parameters
device

A QTCaptureDevice for the device to be associated with the receiver. The device must have been previously opened using the open: method or this method will throw an NSInvalidArgumentException.

Return Value

A QTCaptureDeviceInput instance associated with the device.

Availability
Related Sample Code
Declared In
QTCaptureDeviceInput.h

Instance Methods

device

Returns the device associated with the receiver.

- (QTCaptureDevice *)device

Return Value

If there is a device associated with the receiver, returns a corresponding instance of QTCaptureDevice. Otherwise returns NIL.

Availability
Declared In
QTCaptureDeviceInput.h

initWithDevice:

Returns an instance of QTCaptureDeviceInput associated with the given device.

- (id)initWithDevice:(QTCaptureDevice *)device

Parameters
device

A QTCaptureDevice object for the device to be associated with the receiver. The device must have been previously opened using the open: method, or else this method will throw an NSInvalidArgumentException.

Return Value

A QTCaptureDeviceInput instance associated with the device.

Availability
Declared In
QTCaptureDeviceInput.h

Next Page > Hide TOC


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-04-08)


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.