OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) { | 79 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) { |
80 channel_proxy_->EnableSendTransportSequenceNumber(extension.id); | 80 channel_proxy_->EnableSendTransportSequenceNumber(extension.id); |
81 congestion_controller->EnablePeriodicAlrProbing(true); | 81 congestion_controller->EnablePeriodicAlrProbing(true); |
82 bandwidth_observer_.reset(congestion_controller->GetBitrateController() | 82 bandwidth_observer_.reset(congestion_controller->GetBitrateController() |
83 ->CreateRtcpBandwidthObserver()); | 83 ->CreateRtcpBandwidthObserver()); |
84 } else { | 84 } else { |
85 RTC_NOTREACHED() << "Registering unsupported RTP extension."; | 85 RTC_NOTREACHED() << "Registering unsupported RTP extension."; |
86 } | 86 } |
87 } | 87 } |
88 channel_proxy_->RegisterSenderCongestionControlObjects( | 88 channel_proxy_->RegisterSenderCongestionControlObjects( |
89 congestion_controller->pacer(), congestion_controller, packet_router, | 89 congestion_controller->pacer(), |
| 90 congestion_controller->GetTransportFeedbackObserver(), packet_router, |
90 bandwidth_observer_.get()); | 91 bandwidth_observer_.get()); |
91 if (!SetupSendCodec()) { | 92 if (!SetupSendCodec()) { |
92 LOG(LS_ERROR) << "Failed to set up send codec state."; | 93 LOG(LS_ERROR) << "Failed to set up send codec state."; |
93 } | 94 } |
94 } | 95 } |
95 | 96 |
96 AudioSendStream::~AudioSendStream() { | 97 AudioSendStream::~AudioSendStream() { |
97 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 98 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
98 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString(); | 99 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString(); |
99 channel_proxy_->DeRegisterExternalTransport(); | 100 channel_proxy_->DeRegisterExternalTransport(); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 LOG(LS_WARNING) << "SetVADStatus() failed."; | 374 LOG(LS_WARNING) << "SetVADStatus() failed."; |
374 return false; | 375 return false; |
375 } | 376 } |
376 } | 377 } |
377 } | 378 } |
378 return true; | 379 return true; |
379 } | 380 } |
380 | 381 |
381 } // namespace internal | 382 } // namespace internal |
382 } // namespace webrtc | 383 } // namespace webrtc |
OLD | NEW |