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

Unified Diff: webrtc/api/webrtcsession.cc

Issue 1788583004: Enable setting the maximum bitrate limit in RtpSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/webrtcsession.cc
diff --git a/webrtc/api/webrtcsession.cc b/webrtc/api/webrtcsession.cc
index e5cea14439151afdbc420e77eb7cd09f812a3781..fd85fb7842aacc71814aee09cad76695c6e59d3d 100644
--- a/webrtc/api/webrtcsession.cc
+++ b/webrtc/api/webrtcsession.cc
@@ -1255,6 +1255,22 @@ void WebRtcSession::SetRawAudioSink(uint32_t ssrc,
voice_channel_->SetRawAudioSink(ssrc, std::move(sink));
}
+RTCRtpParameters WebRtcSession::GetAudioRtpParameters(uint32_t ssrc) {
+ ASSERT(signaling_thread()->IsCurrent());
+ if (voice_channel_) {
+ return voice_channel_->GetRtpParameters(ssrc);
+ }
+ return RTCRtpParameters();
+}
+
+bool WebRtcSession::SetAudioRtpParameters(uint32_t ssrc,
+ const RTCRtpParameters& parameters) {
+ ASSERT(signaling_thread()->IsCurrent());
+ if (!voice_channel_)
pthatcher1 2016/03/12 01:21:03 {}s please
skvlad 2016/03/15 21:18:18 Done.
+ return false;
+ return voice_channel_->SetRtpParameters(ssrc, parameters);
+}
+
bool WebRtcSession::SetCaptureDevice(uint32_t ssrc,
cricket::VideoCapturer* camera) {
ASSERT(signaling_thread()->IsCurrent());
@@ -1308,6 +1324,22 @@ void WebRtcSession::SetVideoSend(uint32_t ssrc,
}
}
+RTCRtpParameters WebRtcSession::GetVideoRtpParameters(uint32_t ssrc) {
+ ASSERT(signaling_thread()->IsCurrent());
+ if (video_channel_) {
+ return video_channel_->GetRtpParameters(ssrc);
+ }
+ return RTCRtpParameters();
+}
+
+bool WebRtcSession::SetVideoRtpParameters(uint32_t ssrc,
+ const RTCRtpParameters& parameters) {
+ ASSERT(signaling_thread()->IsCurrent());
pthatcher1 2016/03/12 01:21:03 and here
skvlad 2016/03/15 21:18:17 Done.
+ if (!video_channel_)
+ return false;
+ return video_channel_->SetRtpParameters(ssrc, parameters);
+}
+
bool WebRtcSession::CanInsertDtmf(const std::string& track_id) {
ASSERT(signaling_thread()->IsCurrent());
if (!voice_channel_) {

Powered by Google App Engine
This is Rietveld 408576698