Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: webrtc/audio/audio_receive_stream.cc

Issue 2007743003: Add sender controlled playout delay limits (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@cleanup_rtp_hdr_extensions
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream.cc » ('j') | webrtc/common_types.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_send_stream.cc » ('j') | webrtc/common_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698