OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 kv->second = network_route; | 963 kv->second = network_route; |
964 LOG(LS_INFO) << "Network route changed on transport " << transport_name | 964 LOG(LS_INFO) << "Network route changed on transport " << transport_name |
965 << ": new local network id " << network_route.local_network_id | 965 << ": new local network id " << network_route.local_network_id |
966 << " new remote network id " << network_route.remote_network_id | 966 << " new remote network id " << network_route.remote_network_id |
967 << " Reset bitrates to min: " | 967 << " Reset bitrates to min: " |
968 << config_.bitrate_config.min_bitrate_bps | 968 << config_.bitrate_config.min_bitrate_bps |
969 << " bps, start: " << config_.bitrate_config.start_bitrate_bps | 969 << " bps, start: " << config_.bitrate_config.start_bitrate_bps |
970 << " bps, max: " << config_.bitrate_config.start_bitrate_bps | 970 << " bps, max: " << config_.bitrate_config.start_bitrate_bps |
971 << " bps."; | 971 << " bps."; |
972 RTC_DCHECK_GT(config_.bitrate_config.start_bitrate_bps, 0); | 972 RTC_DCHECK_GT(config_.bitrate_config.start_bitrate_bps, 0); |
973 congestion_controller_->ResetBweAndBitrates( | 973 congestion_controller_->OnNetworkRouteChanged( |
974 config_.bitrate_config.start_bitrate_bps, | 974 network_route, config_.bitrate_config.start_bitrate_bps, |
975 config_.bitrate_config.min_bitrate_bps, | 975 config_.bitrate_config.min_bitrate_bps, |
976 config_.bitrate_config.max_bitrate_bps); | 976 config_.bitrate_config.max_bitrate_bps); |
977 } | 977 } |
978 } | 978 } |
979 | 979 |
980 void Call::UpdateAggregateNetworkState() { | 980 void Call::UpdateAggregateNetworkState() { |
981 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); | 981 RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread()); |
982 | 982 |
983 bool have_audio = false; | 983 bool have_audio = false; |
984 bool have_video = false; | 984 bool have_video = false; |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 if (media_type != MediaType::AUDIO || | 1279 if (media_type != MediaType::AUDIO || |
1280 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { | 1280 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { |
1281 congestion_controller_->OnReceivedPacket( | 1281 congestion_controller_->OnReceivedPacket( |
1282 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), | 1282 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), |
1283 header); | 1283 header); |
1284 } | 1284 } |
1285 } | 1285 } |
1286 | 1286 |
1287 } // namespace internal | 1287 } // namespace internal |
1288 } // namespace webrtc | 1288 } // namespace webrtc |
OLD | NEW |