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

Issue 1847353004: Allow applications to control audio send bitrate through RtpParameters. (Closed)

Created:
4 years, 8 months ago by skvlad
Modified:
4 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Allow applications to control audio send bitrate through RtpParameters. This change builds on top of the refactoring in https://codereview.webrtc.org/1841083008/, and enables WebRTC client applications to control the max send bitrate for every audio stream through RtpParameters. The AudioSendStream now stores the last codec spec, and whenever a global or per-stream bitrate limit changes, the effective limit (smaller of the two) is recomputed and the codec is reconfigured with that bitrate. TBR=pthatcher BUG= Committed: https://crrev.com/e0d4637bea1c5914de73036006c2e4a34e297791 Cr-Commit-Position: refs/heads/master@{#12290}

Patch Set 1 #

Patch Set 2 : Redesigned to keep the logic inside WebRtcVoiceMediaChannel #

Total comments: 14

Patch Set 3 : Code review feedback #

Total comments: 2

Patch Set 4 : More CR feedback #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -69 lines) Patch
M webrtc/api/webrtcsession_unittest.cc View 1 chunk +18 lines, -9 lines 1 comment Download
M webrtc/media/base/mediachannel.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 1 2 3 chunks +10 lines, -4 lines 3 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 10 chunks +102 lines, -34 lines 1 comment Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 3 2 chunks +132 lines, -0 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 1 chunk +4 lines, -16 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
skvlad
4 years, 8 months ago (2016-04-01 20:03:07 UTC) #2
skvlad
Redesigned the change to keep the logic inside WebRtcVoiceMediaChannel, as requested by solenberg@.
4 years, 8 months ago (2016-04-04 20:50:48 UTC) #3
Taylor Brandstetter
lgtm with one trivial comment https://codereview.webrtc.org/1847353004/diff/20001/webrtc/media/engine/webrtcvoiceengine_unittest.cc File webrtc/media/engine/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/1847353004/diff/20001/webrtc/media/engine/webrtcvoiceengine_unittest.cc#newcode862 webrtc/media/engine/webrtcvoiceengine_unittest.cc:862: // that we apply ...
4 years, 8 months ago (2016-04-05 22:05:07 UTC) #4
the sun
Looks good - just some minor comments! https://codereview.webrtc.org/1847353004/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (left): https://codereview.webrtc.org/1847353004/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc#oldcode2344 webrtc/media/engine/webrtcvoiceengine.cc:2344: for (const ...
4 years, 8 months ago (2016-04-06 09:27:41 UTC) #5
skvlad
I've addressed the code review comments. Please take another look when you have time. https://codereview.webrtc.org/1847353004/diff/20001/webrtc/media/engine/webrtcvoiceengine.cc ...
4 years, 8 months ago (2016-04-07 00:50:50 UTC) #6
the sun
Looks good, thanks for your patience! Test coverage is good too, but would it be ...
4 years, 8 months ago (2016-04-07 08:22:21 UTC) #8
skvlad
I've added unit tests for multiple streams. Hope it's all good now. https://codereview.webrtc.org/1847353004/diff/60001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc ...
4 years, 8 months ago (2016-04-08 03:46:56 UTC) #9
the sun
lgtm
4 years, 8 months ago (2016-04-08 05:31:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847353004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847353004/80001
4 years, 8 months ago (2016-04-08 05:42:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847353004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847353004/80001
4 years, 8 months ago (2016-04-08 05:53:55 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 8 months ago (2016-04-08 05:59:30 UTC) #19
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/e0d4637bea1c5914de73036006c2e4a34e297791 Cr-Commit-Position: refs/heads/master@{#12290}
4 years, 8 months ago (2016-04-08 05:59:38 UTC) #21
pthatcher1
4 years, 8 months ago (2016-04-12 18:04:23 UTC) #22
Message was sent while issue was closed.
https://codereview.webrtc.org/1847353004/diff/80001/webrtc/api/webrtcsession_...
File webrtc/api/webrtcsession_unittest.cc (right):

https://codereview.webrtc.org/1847353004/diff/80001/webrtc/api/webrtcsession_...
webrtc/api/webrtcsession_unittest.cc:3397: EXPECT_EQ(1,
params.encodings.size());
This should be ASSERT_EQ since the next line may crash if it's false.

https://codereview.webrtc.org/1847353004/diff/80001/webrtc/media/engine/webrt...
File webrtc/media/engine/webrtcvoiceengine.cc (right):

https://codereview.webrtc.org/1847353004/diff/80001/webrtc/media/engine/webrt...
webrtc/media/engine/webrtcvoiceengine.cc:2400: return true;
{}s please

https://codereview.webrtc.org/1847353004/diff/80001/webrtc/media/engine/webrt...
File webrtc/media/engine/webrtcvoiceengine.h (right):

https://codereview.webrtc.org/1847353004/diff/80001/webrtc/media/engine/webrt...
webrtc/media/engine/webrtcvoiceengine.h:213: bool SetSendCodecs(int channel,
const webrtc::RtpParameters& rtp_parameters);
Should this be SetChannelSendCodecsAndParameters?

https://codereview.webrtc.org/1847353004/diff/80001/webrtc/media/engine/webrt...
webrtc/media/engine/webrtcvoiceengine.h:231: const webrtc::RtpParameters&
parameters);
Shouldn't this be called SetChannelSendParameters?

https://codereview.webrtc.org/1847353004/diff/80001/webrtc/media/engine/webrt...
webrtc/media/engine/webrtcvoiceengine.h:232: bool SetSendBitrate(int channel,
int bps);
And should this be SetChannelSendBitrate?

Powered by Google App Engine
This is Rietveld 408576698