onVideoUpgraded method

void onVideoUpgraded(
  1. bool withVideo,
  2. bool isUpgradeModeRecvOnly
)

Handle upgrade to video

Implementation

void onVideoUpgraded(bool withVideo, bool isUpgradeModeRecvOnly) {
  //Siprix mutes camera when upgrade video request received from remote side AND mode set as recvOnly
  if(withVideo && isUpgradeModeRecvOnly && !_isUpgradingToVideo) _isCamMuted = true;

  _hasVideo = withVideo;
  _isUpgradingToVideo = false;
  notifyListeners();
}