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 an IVSMixerSlotConfiguration 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

    sampleBuffer

    a sample buffer with a CVPixelBuffer with a supported pixel format.