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

Issue 2981513002: Wire up RTP keep-alive in ortc api. (Closed)

Created:
3 years, 5 months ago by sprang_webrtc
Modified:
3 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, yujie_mao (webrtc), peah-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, kwiberg-webrtc, the sun, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Wire up RTP keep-alive in ortc api. [This CL is work in progress.] Wire up the rtp keep-alive in webrtc::Call::Config using new SetRtpTransportParameters() method on RtpTransportInterface. BUG=webrtc:7907 Review-Url: https://codereview.webrtc.org/2981513002 Cr-Commit-Position: refs/heads/master@{#19287} Committed: https://chromium.googlesource.com/external/webrtc/+/db2a9fc6ec119052139d42f8897412bba7fa848b

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : wip #

Total comments: 10

Patch Set 4 : Moved RtcpParameters into RtpTransportParameters #

Total comments: 8

Patch Set 5 : Merge work by ilnik in cl 2984793002, rebase #

Patch Set 6 : Test #

Total comments: 14

Patch Set 7 : Moved tests around #

Total comments: 17

Patch Set 8 : stuff #

Total comments: 6

Patch Set 9 : comments #

Patch Set 10 : Undo accidental chagne #

Patch Set 11 : Removed unneeded includes #

Patch Set 12 : Rebase #

Patch Set 13 : Update check for existing-RtpTransport-keepalive-settings #

Patch Set 14 : Add workaround for gcc #

Total comments: 6

Patch Set 15 : simplify #

Patch Set 16 : Configure call on worker thread #

Patch Set 17 : Move keep-alive config from Call::Config to RtpTransportControllerSend #

Total comments: 2

Patch Set 18 : deps #

Patch Set 19 : deps #

Patch Set 20 : deps, again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+464 lines, -276 lines) Patch
M webrtc/api/ortc/ortcfactoryinterface.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/api/ortc/rtptransportinterface.h View 1 2 3 4 5 6 7 8 4 chunks +26 lines, -6 lines 0 comments Download
M webrtc/call/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/call.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -6 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -3 lines 0 comments Download
M webrtc/call/call_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/fake_rtp_transport_controller_send.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -0 lines 0 comments Download
M webrtc/call/rtp_transport_controller_send.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M webrtc/call/rtp_transport_controller_send.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M webrtc/call/rtp_transport_controller_send_interface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/common_types.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -1 line 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 3 4 5 6 6 chunks +19 lines, -8 lines 0 comments Download
M webrtc/media/base/test/mock_mediachannel.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/ortc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/ortc/ortcfactory.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M webrtc/ortc/ortcfactory.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -10 lines 0 comments Download
M webrtc/ortc/ortcfactory_integrationtest.cc View 1 2 3 4 chunks +24 lines, -24 lines 0 comments Download
M webrtc/ortc/ortcfactory_unittest.cc View 1 2 3 6 chunks +25 lines, -34 lines 0 comments Download
M webrtc/ortc/ortcrtpreceiver_unittest.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M webrtc/ortc/ortcrtpsender_unittest.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M webrtc/ortc/rtptransport_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +101 lines, -45 lines 0 comments Download
M webrtc/ortc/rtptransportadapter.h View 1 2 3 4 5 6 7 4 chunks +7 lines, -7 lines 0 comments Download
M webrtc/ortc/rtptransportadapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +46 lines, -32 lines 0 comments Download
M webrtc/ortc/rtptransportcontrolleradapter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +9 lines, -4 lines 0 comments Download
M webrtc/ortc/rtptransportcontrolleradapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 13 chunks +48 lines, -17 lines 0 comments Download
M webrtc/ortc/srtptransport_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/ortc/testrtpparameters.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/pc/rtptransport.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/pc/rtptransport.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -8 lines 0 comments Download
M webrtc/pc/rtptransport_unittest.cc View 1 2 3 4 5 6 7 1 chunk +23 lines, -12 lines 0 comments Download
M webrtc/pc/srtptransport.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/call_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +15 lines, -2 lines 0 comments Download
M webrtc/video/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +8 lines, -14 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 77 (39 generated)
pthatcher1
https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h#newcode58 webrtc/api/ortc/rtptransportinterface.h:58: RtpKeepAliveConfig keepalive_config; Can we just call this "keepalive" (or ...
3 years, 5 months ago (2017-07-11 18:25:09 UTC) #2
sprang_webrtc
https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h#newcode58 webrtc/api/ortc/rtptransportinterface.h:58: RtpKeepAliveConfig keepalive_config; On 2017/07/11 18:25:09, pthatcher1 wrote: > Can ...
3 years, 5 months ago (2017-07-11 19:54:05 UTC) #3
sprang_webrtc
Input appreciated. Will start adding tests.
3 years, 5 months ago (2017-07-12 14:14:29 UTC) #5
Taylor Brandstetter
https://codereview.webrtc.org/2981513002/diff/40001/webrtc/call/call.h File webrtc/call/call.h (right): https://codereview.webrtc.org/2981513002/diff/40001/webrtc/call/call.h#newcode209 webrtc/call/call.h:209: // only before creating and send streams. Returns true ...
3 years, 5 months ago (2017-07-12 16:19:50 UTC) #6
pthatcher1
https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h#newcode104 webrtc/api/ortc/rtptransportinterface.h:104: virtual RtpTransportParameters GetRtpTransportParameters() const = 0; On 2017/07/11 19:54:05, ...
3 years, 5 months ago (2017-07-12 22:45:21 UTC) #7
Taylor Brandstetter
https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h#newcode104 webrtc/api/ortc/rtptransportinterface.h:104: virtual RtpTransportParameters GetRtpTransportParameters() const = 0; On 2017/07/11 19:54:05, ...
3 years, 5 months ago (2017-07-12 23:15:50 UTC) #8
pthatcher1
On 2017/07/12 23:15:50, Taylor Brandstetter wrote: > https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h > File webrtc/api/ortc/rtptransportinterface.h (right): > > https://codereview.webrtc.org/2981513002/diff/20001/webrtc/api/ortc/rtptransportinterface.h#newcode104 ...
3 years, 5 months ago (2017-07-12 23:49:57 UTC) #9
pthatcher1
I just talked to Taylor about it, and he corrected me that RtcpParameters are transport-level. ...
3 years, 5 months ago (2017-07-12 23:57:09 UTC) #10
sprang_webrtc
Moved RtcpParameters into RtpTransportParameters. I also propagate that struct further. Maybe I took that a ...
3 years, 5 months ago (2017-07-16 09:34:03 UTC) #12
pthatcher1
lgtm https://codereview.webrtc.org/2981513002/diff/60001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/60001/webrtc/api/ortc/rtptransportinterface.h#newcode99 webrtc/api/ortc/rtptransportinterface.h:99: // altering the payload type of timeout interval ...
3 years, 5 months ago (2017-07-17 22:43:27 UTC) #13
Taylor Brandstetter
Looks great so far. Just needs some tests: - Test that the keepalive parameters get ...
3 years, 5 months ago (2017-07-17 23:13:11 UTC) #14
ilnik
I have implemented the comments. Now working on tests - there are some problems. How ...
3 years, 5 months ago (2017-07-21 12:21:19 UTC) #15
Taylor Brandstetter
On 2017/07/21 12:21:19, ilnik wrote: > I have implemented the comments. > > Now working ...
3 years, 5 months ago (2017-07-21 17:02:17 UTC) #16
ilnik
On 2017/07/21 17:02:17, Taylor Brandstetter wrote: > On 2017/07/21 12:21:19, ilnik wrote: > > I ...
3 years, 5 months ago (2017-07-21 17:33:23 UTC) #17
Taylor Brandstetter
On 2017/07/21 17:33:23, ilnik wrote: > On 2017/07/21 17:02:17, Taylor Brandstetter wrote: > > On ...
3 years, 5 months ago (2017-07-21 17:59:06 UTC) #18
sprang_webrtc
Had to do some unpleasant hacking to get the test going, but at least it's ...
3 years, 4 months ago (2017-08-01 11:50:41 UTC) #19
Taylor Brandstetter
https://codereview.webrtc.org/2981513002/diff/100001/webrtc/ortc/rtptransport_unittest.cc File webrtc/ortc/rtptransport_unittest.cc (right): https://codereview.webrtc.org/2981513002/diff/100001/webrtc/ortc/rtptransport_unittest.cc#newcode228 webrtc/ortc/rtptransport_unittest.cc:228: // SetParameters should set keepalive for all rtp transports. ...
3 years, 4 months ago (2017-08-02 00:12:56 UTC) #20
sprang_webrtc
https://codereview.webrtc.org/2981513002/diff/100001/webrtc/ortc/rtptransport_unittest.cc File webrtc/ortc/rtptransport_unittest.cc (right): https://codereview.webrtc.org/2981513002/diff/100001/webrtc/ortc/rtptransport_unittest.cc#newcode228 webrtc/ortc/rtptransport_unittest.cc:228: // SetParameters should set keepalive for all rtp transports. ...
3 years, 4 months ago (2017-08-02 16:45:08 UTC) #21
Taylor Brandstetter
By the way, sorry if this code is confusing. I tried to make it as ...
3 years, 4 months ago (2017-08-03 01:18:04 UTC) #22
sprang_webrtc
> By the way, sorry if this code is confusing. I tried to make it ...
3 years, 4 months ago (2017-08-03 13:06:14 UTC) #23
sprang_webrtc
https://codereview.webrtc.org/2981513002/diff/120001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/120001/webrtc/api/ortc/rtptransportinterface.h#newcode98 webrtc/api/ortc/rtptransportinterface.h:98: // RTP keep-alive settings need to be set before ...
3 years, 4 months ago (2017-08-03 13:08:15 UTC) #24
Taylor Brandstetter
lgtm, assuming nits about comments and error messages are addressed https://codereview.webrtc.org/2981513002/diff/120001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/120001/webrtc/api/ortc/rtptransportinterface.h#newcode98 ...
3 years, 4 months ago (2017-08-03 16:50:37 UTC) #25
sprang_webrtc
https://codereview.webrtc.org/2981513002/diff/120001/webrtc/api/ortc/rtptransportinterface.h File webrtc/api/ortc/rtptransportinterface.h (right): https://codereview.webrtc.org/2981513002/diff/120001/webrtc/api/ortc/rtptransportinterface.h#newcode98 webrtc/api/ortc/rtptransportinterface.h:98: // RTP keep-alive settings need to be set before ...
3 years, 4 months ago (2017-08-07 10:39:36 UTC) #32
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/2981513002/260001
3 years, 4 months ago (2017-08-07 17:18:26 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/19896)
3 years, 4 months ago (2017-08-07 17:24:06 UTC) #51
sprang_webrtc
+stefan, can you please review common_types.h and call/* ?
3 years, 4 months ago (2017-08-07 18:22:18 UTC) #53
Taylor Brandstetter
https://codereview.webrtc.org/2981513002/diff/260001/webrtc/ortc/rtptransportadapter.cc File webrtc/ortc/rtptransportadapter.cc (right): https://codereview.webrtc.org/2981513002/diff/260001/webrtc/ortc/rtptransportadapter.cc#newcode84 webrtc/ortc/rtptransportadapter.cc:84: std::move(params_result)); nit: I think you should be able to ...
3 years, 4 months ago (2017-08-07 19:59:37 UTC) #54
stefan-webrtc
https://codereview.webrtc.org/2981513002/diff/260001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2981513002/diff/260001/webrtc/call/call.cc#newcode1148 webrtc/call/call.cc:1148: // Can be called by RtpTransportController not on the ...
3 years, 4 months ago (2017-08-08 08:13:06 UTC) #55
sprang_webrtc
https://codereview.webrtc.org/2981513002/diff/260001/webrtc/ortc/rtptransportadapter.cc File webrtc/ortc/rtptransportadapter.cc (right): https://codereview.webrtc.org/2981513002/diff/260001/webrtc/ortc/rtptransportadapter.cc#newcode84 webrtc/ortc/rtptransportadapter.cc:84: std::move(params_result)); On 2017/08/07 19:59:36, Taylor Brandstetter wrote: > nit: ...
3 years, 4 months ago (2017-08-08 08:15:13 UTC) #56
sprang_webrtc
https://codereview.webrtc.org/2981513002/diff/260001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2981513002/diff/260001/webrtc/call/call.cc#newcode1148 webrtc/call/call.cc:1148: // Can be called by RtpTransportController not on the ...
3 years, 4 months ago (2017-08-08 08:53:30 UTC) #57
sprang_webrtc
After offline discussion with stefan@, I've moved the keep-alive config away from (supposedly transport-agnostic) Call::Config ...
3 years, 4 months ago (2017-08-08 13:51:12 UTC) #58
Taylor Brandstetter
Patchset 17 lgtm.
3 years, 4 months ago (2017-08-08 23:14:17 UTC) #63
stefan-webrtc
This is much better IMO, thanks! :) One comment that I'd like to hear your ...
3 years, 4 months ago (2017-08-09 07:23:09 UTC) #64
stefan-webrtc
This is much better IMO, thanks! :) One comment that I'd like to hear your ...
3 years, 4 months ago (2017-08-09 07:23:10 UTC) #65
sprang_webrtc
https://codereview.webrtc.org/2981513002/diff/320001/webrtc/ortc/rtptransportcontrolleradapter.cc File webrtc/ortc/rtptransportcontrolleradapter.cc (right): https://codereview.webrtc.org/2981513002/diff/320001/webrtc/ortc/rtptransportcontrolleradapter.cc#newcode235 webrtc/ortc/rtptransportcontrolleradapter.cc:235: "transport controller."); On 2017/08/09 07:23:10, stefan-webrtc wrote: > Just ...
3 years, 4 months ago (2017-08-09 07:59:24 UTC) #68
stefan-webrtc
On 2017/08/09 07:59:24, sprang_webrtc wrote: > https://codereview.webrtc.org/2981513002/diff/320001/webrtc/ortc/rtptransportcontrolleradapter.cc > File webrtc/ortc/rtptransportcontrolleradapter.cc (right): > > https://codereview.webrtc.org/2981513002/diff/320001/webrtc/ortc/rtptransportcontrolleradapter.cc#newcode235 > ...
3 years, 4 months ago (2017-08-09 12:38:22 UTC) #71
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/2981513002/380001
3 years, 4 months ago (2017-08-09 12:46:09 UTC) #74
commit-bot: I haz the power
3 years, 4 months ago (2017-08-09 13:42:42 UTC) #77
Message was sent while issue was closed.
Committed patchset #20 (id:380001) as
https://chromium.googlesource.com/external/webrtc/+/db2a9fc6ec119052139d42f88...

Powered by Google App Engine
This is Rietveld 408576698