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

Unified Diff: webrtc/pc/channel.cc

Issue 1847353004: Allow applications to control audio send bitrate through RtpParameters. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: More CR feedback Created 4 years, 8 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/pc/channel.cc
diff --git a/webrtc/pc/channel.cc b/webrtc/pc/channel.cc
index b76d7bdb1d2d4e72314b23c98ff4171f855e9672..9556beb6fe5612a4a778a341c0366b796e24e183 100644
--- a/webrtc/pc/channel.cc
+++ b/webrtc/pc/channel.cc
@@ -1409,9 +1409,7 @@ webrtc::RtpParameters VoiceChannel::GetRtpParameters(uint32_t ssrc) const {
}
webrtc::RtpParameters VoiceChannel::GetRtpParameters_w(uint32_t ssrc) const {
- // Not yet implemented.
- // TODO(skvlad): Add support for limiting send bitrate for audio channels.
- return webrtc::RtpParameters();
+ return media_channel()->GetRtpParameters(ssrc);
}
bool VoiceChannel::SetRtpParameters(uint32_t ssrc,
@@ -1422,9 +1420,7 @@ bool VoiceChannel::SetRtpParameters(uint32_t ssrc,
bool VoiceChannel::SetRtpParameters_w(uint32_t ssrc,
webrtc::RtpParameters parameters) {
- // Not yet implemented.
- // TODO(skvlad): Add support for limiting send bitrate for audio channels.
- return false;
+ return media_channel()->SetRtpParameters(ssrc, parameters);
}
bool VoiceChannel::GetStats(VoiceMediaInfo* stats) {

Powered by Google App Engine
This is Rietveld 408576698