TVIVideoCaptureConsumer Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | TVIVideoCapturer.h |
– consumeCapturedFrame:
required method
Provides a frame to the consumer.
- (void)consumeCapturedFrame:(nonnull TVIVideoFrame *)frameParameters
frame |
A |
|---|
Discussion
Before this method returns the consumer will retain the frame’s underlying imageBuffer. The CVImageBuffer
will be asynchronously delivered to the video pipeline, and released once it has been rendered and/or encoded.
Zero-copy rendering is possible if the CVImageBuffer properties contain
kCVPixelBufferIOSurfacePropertiesKey, kCVPixelBufferMetalCompatibilityKey, or kCVPixelBufferOpenGLESCompatibilityKey.
At the moment your renderers will receive an I420 buffer converted from imageBuffer which resides in main system memory.
Declared In
TVIVideoCapturer.h
– captureDidStart:
required method
Signals to the consumer that capture has started, or failed to start.
- (void)captureDidStart:(BOOL)successParameters
success |
|
|---|
Discussion
It is safe to call this method inside of startCapture:consumer:.
Declared In
TVIVideoCapturer.h