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

Side by Side Diff: webrtc/audio/audio_send_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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 channel_proxy_->RegisterExternalTransport(config.send_transport); 79 channel_proxy_->RegisterExternalTransport(config.send_transport);
80 80
81 for (const auto& extension : config.rtp.extensions) { 81 for (const auto& extension : config.rtp.extensions) {
82 if (extension.uri == RtpExtension::kAbsSendTimeUri) { 82 if (extension.uri == RtpExtension::kAbsSendTimeUri) {
83 channel_proxy_->SetSendAbsoluteSenderTimeStatus(true, extension.id); 83 channel_proxy_->SetSendAbsoluteSenderTimeStatus(true, extension.id);
84 } else if (extension.uri == RtpExtension::kAudioLevelUri) { 84 } else if (extension.uri == RtpExtension::kAudioLevelUri) {
85 channel_proxy_->SetSendAudioLevelIndicationStatus(true, extension.id); 85 channel_proxy_->SetSendAudioLevelIndicationStatus(true, extension.id);
86 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) { 86 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) {
87 channel_proxy_->EnableSendTransportSequenceNumber(extension.id); 87 channel_proxy_->EnableSendTransportSequenceNumber(extension.id);
88 } else if (extension.uri == RtpExtension::kPlayoutDelayUri) {
89 channel_proxy_->EnableSendPlayoutDelayLimit(extension.id);
88 } else { 90 } else {
89 RTC_NOTREACHED() << "Registering unsupported RTP extension."; 91 RTC_NOTREACHED() << "Registering unsupported RTP extension.";
90 } 92 }
91 } 93 }
92 } 94 }
93 95
94 AudioSendStream::~AudioSendStream() { 96 AudioSendStream::~AudioSendStream() {
95 RTC_DCHECK(thread_checker_.CalledOnValidThread()); 97 RTC_DCHECK(thread_checker_.CalledOnValidThread());
96 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString(); 98 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString();
97 channel_proxy_->DeRegisterExternalTransport(); 99 channel_proxy_->DeRegisterExternalTransport();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 227
226 VoiceEngine* AudioSendStream::voice_engine() const { 228 VoiceEngine* AudioSendStream::voice_engine() const {
227 internal::AudioState* audio_state = 229 internal::AudioState* audio_state =
228 static_cast<internal::AudioState*>(audio_state_.get()); 230 static_cast<internal::AudioState*>(audio_state_.get());
229 VoiceEngine* voice_engine = audio_state->voice_engine(); 231 VoiceEngine* voice_engine = audio_state->voice_engine();
230 RTC_DCHECK(voice_engine); 232 RTC_DCHECK(voice_engine);
231 return voice_engine; 233 return voice_engine;
232 } 234 }
233 } // namespace internal 235 } // namespace internal
234 } // namespace webrtc 236 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698