OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 rtc::CritScope stream_lock(&stream_crit_); | 1108 rtc::CritScope stream_lock(&stream_crit_); |
1109 | 1109 |
1110 if (!ValidateSendSsrcAvailability(sp)) | 1110 if (!ValidateSendSsrcAvailability(sp)) |
1111 return false; | 1111 return false; |
1112 | 1112 |
1113 for (uint32_t used_ssrc : sp.ssrcs) | 1113 for (uint32_t used_ssrc : sp.ssrcs) |
1114 send_ssrcs_.insert(used_ssrc); | 1114 send_ssrcs_.insert(used_ssrc); |
1115 | 1115 |
1116 webrtc::VideoSendStream::Config config(this); | 1116 webrtc::VideoSendStream::Config config(this); |
1117 config.suspend_below_min_bitrate = video_config_.suspend_below_min_bitrate; | 1117 config.suspend_below_min_bitrate = video_config_.suspend_below_min_bitrate; |
| 1118 config.periodic_bandwidth_probing = video_config_.periodic_bandwidth_probing; |
1118 WebRtcVideoSendStream* stream = new WebRtcVideoSendStream( | 1119 WebRtcVideoSendStream* stream = new WebRtcVideoSendStream( |
1119 call_, sp, std::move(config), default_send_options_, | 1120 call_, sp, std::move(config), default_send_options_, |
1120 external_encoder_factory_, video_config_.enable_cpu_overuse_detection, | 1121 external_encoder_factory_, video_config_.enable_cpu_overuse_detection, |
1121 bitrate_config_.max_bitrate_bps, send_codec_, send_rtp_extensions_, | 1122 bitrate_config_.max_bitrate_bps, send_codec_, send_rtp_extensions_, |
1122 send_params_); | 1123 send_params_); |
1123 | 1124 |
1124 uint32_t ssrc = sp.first_ssrc(); | 1125 uint32_t ssrc = sp.first_ssrc(); |
1125 RTC_DCHECK(ssrc != 0); | 1126 RTC_DCHECK(ssrc != 0); |
1126 send_streams_[ssrc] = stream; | 1127 send_streams_[ssrc] = stream; |
1127 | 1128 |
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 rtx_mapping[video_codecs[i].codec.id] != | 2576 rtx_mapping[video_codecs[i].codec.id] != |
2576 ulpfec_config.red_payload_type) { | 2577 ulpfec_config.red_payload_type) { |
2577 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2578 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2578 } | 2579 } |
2579 } | 2580 } |
2580 | 2581 |
2581 return video_codecs; | 2582 return video_codecs; |
2582 } | 2583 } |
2583 | 2584 |
2584 } // namespace cricket | 2585 } // namespace cricket |
OLD | NEW |