Mac Developer Library

Developer

AVFoundation Framework Reference AVCaptureOutput Class Reference

Options
Deployment Target:

On This Page
Language:

AVCaptureOutput

AVCaptureOutput is an abstract base-class describing an output destination of an AVCaptureSession object. More...

Conforms To


Import Statement


import AVFoundation @import AVFoundation;

Availability


Available in OS X v10.7 and later.
  • The capture output object’s connections. (read-only)

    Declaration

    Swift

    var connections: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *connections

    Discussion

    The value of this property is an array of AVCaptureConnection objects, each describing the mapping between the receiver and the capture input ports (see AVCaptureInputPort) of one or more capture inputs (see AVCaptureInput).

    Import Statement

    import AVFoundation

    Availability

    Available in OS X v10.7 and later.

  • Returns the first connection in the connections array with an input port of a specified media type.

    Declaration

    Swift

    func connectionWithMediaType(_ mediaType: String!) -> AVCaptureConnection!

    Objective-C

    - (AVCaptureConnection *)connectionWithMediaType:(NSString *)mediaType

    Parameters

    mediaType

    An AVMediaType constant from AVMediaFormat.h, for example, AVMediaTypeVideo.

    Return Value

    The first capture connection in the connections array that has an AVCaptureInputPort with media type mediaType, or nil if no connection with the specified media type is found.

    Import Statement

    import AVFoundation

    Availability

    Available in OS X v10.7 and later.