void DefaultSignalingClient::UpdateLocalVideo()

in chime-sdk-signaling-cpp/src/signaling/default_signaling_client.cc [55:65]


void DefaultSignalingClient::UpdateLocalVideo(const std::string& mid, const LocalVideoConfiguration& configuration) {
  bool is_exists = local_video_sources_.find(mid) != local_video_sources_.end();
  // It will create internal_local_video_configuration if it is not in the map
  // Even though we have mapping, it will be only one video currently
  InternalStreamConfiguration& internal_local_video_configuration = local_video_sources_[mid];
  internal_local_video_configuration.max_bitrate_kbps = configuration.max_bitrate_kbps;
  CHIME_LOG(LogLevel::kInfo, "Set bitrate to " + std::to_string(internal_local_video_configuration.max_bitrate_kbps));
  if (!is_exists) {
    AddAttendee(internal_local_video_configuration, signaling_configuration_);
  }
}