VICustomVideoSource
Interface that represents a custom video source.
Props
delegate
@property (weak, nullable, nonatomic) delegate
A delegate to handle a custom video source events.
Returns
type:
Methods
initScreenCastFormat
- (instancetype
)initScreenCastFormat
Initializes a screencast custom video source.
Returns
type:
instancetype
initWithVideoFormats:
- (instancetype
)initWithVideoFormats:(NSArray<VIVideoFormat *> *
)formats
Initializes a 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
Sends a video frame.
Parameters
buffer:
CVPixelBufferRef
Pixel buffer. Should be kCVPixelFormatType_420YpCbCr8BiPlanarFullRange or kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
rotation:
Video rotation
Returns
type:
void