VICustomVideoSource

Interface that represents custom video source

Members
delegate

VICustomVideoSourceDelegate delegate to handle custom video source events

@property (nonatomic, weak) id<VICustomVideoSourceDelegate> delegate
–  init

Warning: NS_UNAVAILABLE

- (instancetype)init
–  initWithVideoFormats:

Initialize custom video source

- (instancetype)initWithVideoFormats:(NSArray<VIVideoFormat*> *)formats
Parameters
formats

Video format for the custom video source

Return

VICustomVideoSource instance

–  sendVideoFrame:rotation:

Send video frame

- (void)sendVideoFrame:(CVPixelBufferRef)buffer rotation:(VIRotation)rotation
Parameters
buffer

Pixel buffer. Should be kCVPixelFormatType_420YpCbCr8BiPlanarFullRange or kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange

rotation

Video rotation