SIGN UP

VICustomVideoSource

Interface that represents custom video source.

Methods

- (instancetype)initWithVideoFormats:(NSArray<VIVideoFormat *> *)formats

Initialize custom video source.

Parameters

  • formats:

    NSArray<VIVideoFormat *> *

    Video format for the custom video source.

Returns

  • Return:

    instancetype

    Custom video source instance.

- (void)sendVideoFrame:(CVPixelBufferRef)buffer
              rotation:(VIRotation)rotation

Send video frame.

Parameters

Properties

@property (nonatomic, weak) id<VICustomVideoSourceDelegate> delegate

Delegate to handle custom video source events.