pjsua_conf_connect2 method
Establish unidirectional media flow from source to sink. One source may transmit to multiple destinations/sink. And if multiple sources are transmitting to the same sink, the media will be mixed together. Source and sink may refer to the same ID, effectively looping the media.
Signal level from the source to the sink can be adjusted by making it louder or quieter via the parameter param. The level adjustment will apply to a specific connection only (i.e. only for the signal from the source to the sink), as compared to pjsua_conf_adjust_tx_level()/pjsua_conf_adjust_rx_level() which applies to all signals from/to that port. The signal adjustment will be cumulative, in this following order: signal from the source will be adjusted with the level specified in pjsua_conf_adjust_rx_level(), then with the level specified via this API, and finally with the level specified to the sink's pjsua_conf_adjust_tx_level().
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 prm Conference port connection param. If set to NULL, default values will be used.
@return PJ_SUCCESS on success, or the appropriate error code.
Implementation
int pjsua_conf_connect2(
int source,
int sink,
ffi.Pointer<pjsua_conf_connect_param> prm,
) {
return _pjsua_conf_connect2(
source,
sink,
prm,
);
}