pjsua_vid_conf_connect method

int pjsua_vid_conf_connect(
  1. int source,
  2. int sink,
  3. Pointer<Void> param
)

Establish unidirectional video flow from souce to sink. One source may transmit to multiple destinations/sink. And if multiple sources are transmitting to the same sink, the video will be mixed together (currently, each source will be resized down so all sources will occupy the same portion in the sink video frame). Source and sink may refer to the same ID, effectively looping the media.

If bidirectional media flow is desired, application needs to call this function twice, with the second one having the arguments reversed.

@param source Port ID of the source media/transmitter. @param sink Port ID of the destination media/received. @param param Currently this is not used and must be set to NULL.

@return PJ_SUCCESS on success, or the appropriate error code.

Implementation

int pjsua_vid_conf_connect(
  int source,
  int sink,
  ffi.Pointer<ffi.Void> param,
) {
  return _pjsua_vid_conf_connect(
    source,
    sink,
    param,
  );
}