onVideoUpgraded method

void onVideoUpgraded(
  1. int callId,
  2. bool withVideo
)

Handle case when remote side requested to start send/receive video and request accepted.

Implementation

void onVideoUpgraded(int callId, bool withVideo) {
  _logs?.print('onVideoUpgraded callId:$callId withVideo:$withVideo');

  CallModel? call = _findCall(callId);
  if(call == null) return;

  bool isUpgradeModeRecvOnly = _accountsModel.isUpgradeToVideoModeRecvOnly(call.accUri);
  call.onVideoUpgraded(withVideo, isUpgradeModeRecvOnly);
}