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 |
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
.
Returns an autoreleased instance of QTCaptureDeviceInput
associated with the given device.
+ (id)deviceInputWithDevice:(QTCaptureDevice *)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.
A QTCaptureDeviceInput
instance associated with the device.
QTCaptureDeviceInput.h
Returns the device associated with the receiver.
- (QTCaptureDevice *)device
If there is a device associated with the receiver, returns a corresponding instance of QTCaptureDevice
. Otherwise returns NIL
.
QTCaptureDeviceInput.h
Returns an instance of QTCaptureDeviceInput
associated with the given device.
- (id)initWithDevice:(QTCaptureDevice *)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.
A QTCaptureDeviceInput
instance associated with the device.
QTCaptureDeviceInput.h
© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-04-08)