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