VICustomVideoSource
Interface that represents custom video source.
Props
delegate
@property (weak, nullable, nonatomic) delegate
A delegate to handle custom video source events.
Returns
type:
Methods
initScreenCastFormat
- (instancetype
)initScreenCastFormat
Initialize screencast custom video source.
Returns
type:
instancetype
initWithVideoFormats:
- (instancetype
)initWithVideoFormats:(NSArray<VIVideoFormat *> *
)formats
Initialize custom video source.
Parameters
formats:
NSArray<VIVideoFormat *> *
Video format for the custom video source.
Returns
type:
instancetype
sendVideoFrame:rotation:
- (void
)sendVideoFrame:(CVPixelBufferRef
)buffer
rotation:()rotation
Send video frame.
Parameters
buffer:
CVPixelBufferRef
Pixel buffer. Should be kCVPixelFormatType_420YpCbCr8BiPlanarFullRange or kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange.
rotation:
Video rotation.
Returns
type:
void