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

Side by Side Diff: webrtc/api/rtpsender.cc

Issue 1788583004: Enable setting the maximum bitrate limit in RtpSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased on top of the latest master branch Created 4 years, 9 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 | « webrtc/api/rtpsender.h ('k') | webrtc/api/rtpsenderinterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // a remote audio track to a peer connection. 192 // a remote audio track to a peer connection.
193 options = static_cast<LocalAudioSource*>(track_->GetSource())->options(); 193 options = static_cast<LocalAudioSource*>(track_->GetSource())->options();
194 } 194 }
195 #endif 195 #endif
196 196
197 cricket::AudioSource* source = sink_adapter_.get(); 197 cricket::AudioSource* source = sink_adapter_.get();
198 ASSERT(source != nullptr); 198 ASSERT(source != nullptr);
199 provider_->SetAudioSend(ssrc_, track_->enabled(), options, source); 199 provider_->SetAudioSend(ssrc_, track_->enabled(), options, source);
200 } 200 }
201 201
202 RtpParameters AudioRtpSender::GetParameters() const {
203 return provider_->GetAudioRtpParameters(ssrc_);
204 }
205
206 bool AudioRtpSender::SetParameters(const RtpParameters& parameters) {
207 return provider_->SetAudioRtpParameters(ssrc_, parameters);
208 }
209
202 VideoRtpSender::VideoRtpSender(VideoTrackInterface* track, 210 VideoRtpSender::VideoRtpSender(VideoTrackInterface* track,
203 const std::string& stream_id, 211 const std::string& stream_id,
204 VideoProviderInterface* provider) 212 VideoProviderInterface* provider)
205 : id_(track->id()), 213 : id_(track->id()),
206 stream_id_(stream_id), 214 stream_id_(stream_id),
207 provider_(provider), 215 provider_(provider),
208 track_(track), 216 track_(track),
209 cached_track_enabled_(track->enabled()) { 217 cached_track_enabled_(track->enabled()) {
210 RTC_DCHECK(provider != nullptr); 218 RTC_DCHECK(provider != nullptr);
211 track_->RegisterObserver(this); 219 track_->RegisterObserver(this);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 cricket::VideoOptions options; 331 cricket::VideoOptions options;
324 VideoTrackSourceInterface* source = track_->GetSource(); 332 VideoTrackSourceInterface* source = track_->GetSource();
325 if (source) { 333 if (source) {
326 options.is_screencast = rtc::Optional<bool>(source->is_screencast()); 334 options.is_screencast = rtc::Optional<bool>(source->is_screencast());
327 options.video_noise_reduction = 335 options.video_noise_reduction =
328 rtc::Optional<bool>(source->needs_denoising()); 336 rtc::Optional<bool>(source->needs_denoising());
329 } 337 }
330 provider_->SetVideoSend(ssrc_, track_->enabled(), &options); 338 provider_->SetVideoSend(ssrc_, track_->enabled(), &options);
331 } 339 }
332 340
341 RtpParameters VideoRtpSender::GetParameters() const {
342 return provider_->GetVideoRtpParameters(ssrc_);
343 }
344
345 bool VideoRtpSender::SetParameters(const RtpParameters& parameters) {
346 return provider_->SetVideoRtpParameters(ssrc_, parameters);
347 }
348
333 } // namespace webrtc 349 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/rtpsender.h ('k') | webrtc/api/rtpsenderinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698