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

Issue 2306083002: Adding basic implementation of AudioNetworkAdaptor. (Closed)

Created:
4 years, 3 months ago by minyue-webrtc
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding basic implementation of AudioNetworkAdaptor. The basic implementation of AudioNetworkAdaptor include the introduction of 1. Controller 2. ControllerManager ControllerManager is to hold all needed controllers. It also orders them according to their significance in dealing with current network condition. Controller provides an interface MakeDecision, which has to be implemented by specific controllers. AudioNetworkAdaptorImpl calls MakeDecision of the controllers in the order decided by ControllerManager to collect EncoderRuntimeConfig. BUG=webrtc:6303 Committed: https://crrev.com/caa9cb2ceaeeff80def6255eead3d3232efc23ed Cr-Commit-Position: refs/heads/master@{#14201}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebasing #

Patch Set 3 : removing unnecessary code for abstract class Controller #

Total comments: 11

Patch Set 4 : on Henrik's comments #

Patch Set 5 : using -> of Optional #

Total comments: 27

Patch Set 6 : on Karl's comments #

Total comments: 8

Patch Set 7 : on Karl's further comments #

Total comments: 11

Patch Set 8 : more polish #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -0 lines) Patch
M webrtc/modules/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 1 chunk +6 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor.gypi View 1 chunk +6 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +110 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/controller.h View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/controller.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.cc View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/controller_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller.h View 1 chunk +31 lines, -0 lines 0 comments Download
A webrtc/modules/audio_coding/audio_network_adaptor/mock/mock_controller_manager.h View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 50 (23 generated)
minyue-webrtc
Hi Henrik and Karl, This is the second CL. It gives the basic structure and ...
4 years, 3 months ago (2016-09-02 15:13:25 UTC) #10
minyue-webrtc
+michaelt@ as reviewer
4 years, 3 months ago (2016-09-07 07:57:03 UTC) #14
michaelt
Short review test https://codereview.webrtc.org/2306083002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): https://codereview.webrtc.org/2306083002/diff/20001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#newcode33 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc:33: RTC_DCHECK(controller_manager_.get()); .get() is useless here
4 years, 3 months ago (2016-09-07 08:15:37 UTC) #15
minyue-webrtc
I updated the CL by making Controller more abstract class like. Please continue the review. ...
4 years, 3 months ago (2016-09-07 12:00:00 UTC) #17
hlundin-webrtc
Nice! Just a few comments. https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#newcode15 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc:15: #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h" You don't ...
4 years, 3 months ago (2016-09-07 14:20:32 UTC) #18
minyue-webrtc
Thanks for the comments! I made slight changes, PTAL again. https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#newcode15 ...
4 years, 3 months ago (2016-09-08 11:06:15 UTC) #19
kwiberg-webrtc
https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc (right): https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc#newcode35 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc:35: return (*arg.receiver_frame_length_range).min_frame_length_ms == On 2016/09/08 11:06:14, minyue-webrtc wrote: > ...
4 years, 3 months ago (2016-09-08 11:25:34 UTC) #20
minyue-webrtc
On 2016/09/08 11:25:34, kwiberg-webrtc wrote: > https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc > File > webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc > (right): > > ...
4 years, 3 months ago (2016-09-08 13:07:50 UTC) #21
minyue-webrtc
Please find PS5 that includes the latest change.
4 years, 3 months ago (2016-09-08 13:30:22 UTC) #22
hlundin-webrtc
lgtm https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc (right): https://codereview.webrtc.org/2306083002/diff/80001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc#newcode64 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl_unittest.cc:64: .WillRepeatedly(Return(controllers)); On 2016/09/08 11:06:14, minyue-webrtc wrote: > On ...
4 years, 3 months ago (2016-09-08 13:52:06 UTC) #23
minyue-webrtc
Hi Karl and Michael, Do you have other comments?
4 years, 3 months ago (2016-09-09 08:51:53 UTC) #24
kwiberg-webrtc
Yes, more comments. Sorry for the delay! https://codereview.webrtc.org/2306083002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): https://codereview.webrtc.org/2306083002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#newcode13 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc:13: #include "webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h" ...
4 years, 3 months ago (2016-09-09 11:56:15 UTC) #25
minyue-webrtc
Hi Karl, Thanks for the comments! I have updated a new patch set. PTAL again. ...
4 years, 3 months ago (2016-09-12 11:36:11 UTC) #26
kwiberg-webrtc
https://codereview.webrtc.org/2306083002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): https://codereview.webrtc.org/2306083002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#newcode13 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc:13: #include "webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h" On 2016/09/12 11:36:11, minyue-webrtc wrote: > On ...
4 years, 3 months ago (2016-09-12 13:33:50 UTC) #27
minyue-webrtc
Hi Karl, Nice comments! I uploaded a new patch and PTAL again. https://codereview.webrtc.org/2306083002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h File webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h ...
4 years, 3 months ago (2016-09-12 15:08:36 UTC) #28
kwiberg-webrtc
https://codereview.webrtc.org/2306083002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc (right): https://codereview.webrtc.org/2306083002/diff/120001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc#newcode24 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.cc:24: new ControllerManager(config_.controller_manager_config)) {} I think you still declare this ...
4 years, 3 months ago (2016-09-13 11:11:42 UTC) #29
minyue-webrtc
Hi Karl, Thank you for picking out the error and proposing the use of auto. ...
4 years, 3 months ago (2016-09-13 11:48:50 UTC) #30
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2306083002/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h File webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h (right): https://codereview.webrtc.org/2306083002/diff/160001/webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h#newcode28 webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h:28: }; On 2016/09/13 11:48:50, minyue-webrtc wrote: > On ...
4 years, 3 months ago (2016-09-13 12:34:58 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2306083002/180001
4 years, 3 months ago (2016-09-13 13:47:50 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 3 months ago (2016-09-13 15:48:17 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2306083002/180001
4 years, 3 months ago (2016-09-13 15:56:34 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 3 months ago (2016-09-13 17:57:06 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2306083002/180001
4 years, 3 months ago (2016-09-13 18:10:17 UTC) #42
commit-bot: I haz the power
Exceeded global retry quota
4 years, 3 months ago (2016-09-13 20:10:54 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2306083002/180001
4 years, 3 months ago (2016-09-13 20:15:48 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 3 months ago (2016-09-13 20:34:20 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 20:34:32 UTC) #50
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/caa9cb2ceaeeff80def6255eead3d3232efc23ed
Cr-Commit-Position: refs/heads/master@{#14201}

Powered by Google App Engine
This is Rietveld 408576698