Rate this page:

VICustomVideoSource

Interface that represents a custom video source.

Props

delegate

Copy URL
@property (weak, nullable, nonatomic) 

id<VICustomVideoSourceDelegate>

delegate

A delegate to handle a custom video source events.

Methods

initScreenCastFormat

Copy URL
- (

instancetype

)initScreenCastFormat

Initializes a screencast custom video source.

Returns

  • type:

    instancetype

initWithVideoFormats:

Copy URL
- (

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:

Copy URL
- (

void

)sendVideoFrame:(

CVPixelBufferRef

)buffer
rotation:(

VIRotation

)rotation

Sends a video frame.

Parameters

Returns

  • type:

    void