onVideoUpgraded method

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

Handle upgrade to video

Implementation

void onVideoUpgraded(bool withVideo, bool isUpgradeModeRecvOnly) {
  _hasVideo = withVideo;
  if(isUpgradeModeRecvOnly) _isCamMuted = true;
  notifyListeners();
}