IVSCustomImageSource
Objective-C
@protocol IVSCustomImageSource <IVSImageDevice>
                Swift
protocol IVSCustomImageSource : IVSImageDevice
                An extention of IVSImageDevice that allows for submitting CMSampleBuffers manually.
The currently supported pixel formats are:
kCVPixelFormatType_32BGRA
kCVPixelFormatType_420YpCbCr8BiPlanarFullRange
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
On devices that support it, the Lossless and Lossy equivalents of these formats are also supported.
Note
Make sure you have anIVSMixerSlotConfiguration that requests the preferredVideoInput value of IVSDeviceTypeUserVideo.
- 
                  
                  
Submit a frame to the broadcaster for processing.
Declaration
Objective-C
- (void)onSampleBuffer:(nonnull CMSampleBufferRef)sampleBuffer;Swift
func onSampleBuffer(_ sampleBuffer: CMSampleBuffer)Parameters
sampleBuffera sample buffer with a
CVPixelBufferwith a supported pixel format. 
        IVSCustomImageSource Protocol Reference