# OTVideoCaptureConsumer Protocol Reference

Conforms to | NSObject
Declared in | OTVideoKit.h

## Overview

Defines a the consumer of an OTVideoCapture object.

### `– consumeFrame:` required method

Consumes a frame.

`- (void)consumeFrame:(nonnull OTVideoFrame *)frame`

#### Parameters

`frame` | The frame to consume.

#### Declared In

`OTVideoKit.h`

### `– consumeImageBuffer:orientation:timestamp:metadata:` required method

Consumes a CoreVideo image buffer.

`- (BOOL)consumeImageBuffer:(nonnull CVImageBufferRef)frame orientation:(OTVideoOrientation)orientation timestamp:(CMTime)ts metadata:(NSData *_Nullable)metadata`

#### Parameters

`frame` | The CVImageBufferRef to consume. The frame’s pixel type must be one of the following kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_420YpCbCr8Planar, kCVPixelFormatType_420YpCbCr8PlanarFullRange, kCVPixelFormatType_32ARGB, kCVPixelFormatType_32BGRA, or kCVPixelFormatType_24RGB.
`orientation` | The orientation of the frame.
`ts` | The frame timestamp.
`metadata` | The frame metadata.

#### Return Value

YES if the image buffer consumed successfully, or NO upon failure.

#### Declared In

`OTVideoKit.h`