| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } else if (extension.uri == RtpExtension::kAbsSendTimeUri) { | 105 } else if (extension.uri == RtpExtension::kAbsSendTimeUri) { |
| 106 channel_proxy_->SetReceiveAbsoluteSenderTimeStatus(true, extension.id); | 106 channel_proxy_->SetReceiveAbsoluteSenderTimeStatus(true, extension.id); |
| 107 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( | 107 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( |
| 108 kRtpExtensionAbsoluteSendTime, extension.id); | 108 kRtpExtensionAbsoluteSendTime, extension.id); |
| 109 RTC_DCHECK(registered); | 109 RTC_DCHECK(registered); |
| 110 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) { | 110 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) { |
| 111 channel_proxy_->EnableReceiveTransportSequenceNumber(extension.id); | 111 channel_proxy_->EnableReceiveTransportSequenceNumber(extension.id); |
| 112 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( | 112 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( |
| 113 kRtpExtensionTransportSequenceNumber, extension.id); | 113 kRtpExtensionTransportSequenceNumber, extension.id); |
| 114 RTC_DCHECK(registered); | 114 RTC_DCHECK(registered); |
| 115 } else if (extension.uri == RtpExtension::kPlayoutDelayUri) { |
| 116 channel_proxy_->EnableReceivePlayoutDelayLimit(extension.id); |
| 117 RTC_DCHECK(rtp_header_parser_->RegisterRtpHeaderExtension( |
| 118 kRtpExtensionPlayoutDelay, extension.id)); |
| 115 } else { | 119 } else { |
| 116 RTC_NOTREACHED() << "Unsupported RTP extension."; | 120 RTC_NOTREACHED() << "Unsupported RTP extension."; |
| 117 } | 121 } |
| 118 } | 122 } |
| 119 // Configure bandwidth estimation. | 123 // Configure bandwidth estimation. |
| 120 channel_proxy_->RegisterReceiverCongestionControlObjects( | 124 channel_proxy_->RegisterReceiverCongestionControlObjects( |
| 121 congestion_controller->packet_router()); | 125 congestion_controller->packet_router()); |
| 122 if (UseSendSideBwe(config)) { | 126 if (UseSendSideBwe(config)) { |
| 123 remote_bitrate_estimator_ = | 127 remote_bitrate_estimator_ = |
| 124 congestion_controller->GetRemoteBitrateEstimator(true); | 128 congestion_controller->GetRemoteBitrateEstimator(true); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 247 |
| 244 VoiceEngine* AudioReceiveStream::voice_engine() const { | 248 VoiceEngine* AudioReceiveStream::voice_engine() const { |
| 245 internal::AudioState* audio_state = | 249 internal::AudioState* audio_state = |
| 246 static_cast<internal::AudioState*>(audio_state_.get()); | 250 static_cast<internal::AudioState*>(audio_state_.get()); |
| 247 VoiceEngine* voice_engine = audio_state->voice_engine(); | 251 VoiceEngine* voice_engine = audio_state->voice_engine(); |
| 248 RTC_DCHECK(voice_engine); | 252 RTC_DCHECK(voice_engine); |
| 249 return voice_engine; | 253 return voice_engine; |
| 250 } | 254 } |
| 251 } // namespace internal | 255 } // namespace internal |
| 252 } // namespace webrtc | 256 } // namespace webrtc |
| OLD | NEW |