Instance Method

connectionWithMediaType:

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

Declaration

- (AVCaptureConnection *)connectionWithMediaType:(AVMediaType)mediaType;

Parameters

mediaType

A media type constant (such as AVMediaTypeVideo or AVMediaTypeAudio).

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.

See Also

Accessing Connections

connections

The capture output object’s connections.

AVCaptureOutputDataDroppedReason

Information about why capture data was not delivered.