setSourceCall method

void setSourceCall(
  1. int callId
)

Use created texture for rendering video of specified call

Implementation

void setSourceCall(int callId) async {
  if(callId==kInvalidCallId) return;
  _srcCallId = callId;

  try{
    await SiprixVoipSdk().videoRendererSetSourceCall(_textureId, callId);
    _logs?.print('Assign textureId: $textureId with callId:$_srcCallId');
  } on PlatformException catch (err) {
    _logs?.print('Cant set src call for renderer Err: ${err.code} ${err.message}');
  }
}