SIGN UP

ICustomVideoSource

Interface that represents alternative video frame source for a call. The interface may be used to send video frames from alternative to camera video source.

Methods

release

void release()

Release CustomVideoSource instance

sendFrame

void sendFrame(byte[] frame, int width, int height)

Send video frame. Video frame must be in I420 format.

Parameters

  • frame:

    byte[]

    Video frame in I420 format

  • width:

    int

    Video frame width

  • height:

    int

    Video frame height

Throws

  • type:

    IllegalArgumentException if width and height do not match video frame width and height

setCustomVideoSourceListener

void setCustomVideoSourceListener(ICustomVideoSourceListener listener)

Set ICustomVideoSourceListener to monitor its events

Parameters