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

Issue 1351803002: Exposing RtpSenders and RtpReceivers from PeerConnection. (Closed)

Created:
5 years, 3 months ago by Taylor Brandstetter
Modified:
5 years, 2 months ago
Reviewers:
pthatcher1
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Exposing RtpSenders and RtpReceivers from PeerConnection. This CL essentially converts [Local|Remote]TrackHandler to Rtp[Sender|Receiver], and adds a "SetTrack" method for RtpSender. It also gets rid of MediaStreamHandler and MediaStreamHandlerContainer, since these classes weren't really anything more than containers. PeerConnection now manages the RtpSenders and RtpReceivers directly. Committed: https://crrev.com/70ab1a1ca89d280a7d51e3fadc51d4be9df209ca Cr-Commit-Position: refs/heads/master@{#10100}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Removing "mid" from everything, plus other minor changes #

Patch Set 3 : Fixing various issues, plus properly disposing of Java objects. #

Patch Set 4 : Fixing indentation. #

Total comments: 19

Patch Set 5 : Splitting Java changes out of this CL #

Patch Set 6 : Adding id method to RtpSender/Receiver, and no longer storing proxy objects in PeerConnection. #

Patch Set 7 : Return bool from RtpSenderInterface::SetTrack. #

Total comments: 16

Patch Set 8 : Addressing Peter's comments (just renaming things). #

Patch Set 9 : Replacing "DetachFromProvider" with "Stop" and some TODOs. #

Total comments: 2

Patch Set 10 : Checking for provider_ being NULL in Stop. #

Patch Set 11 : Merge with master (stubbed files becoming real files) #

Patch Set 12 : Adding some stubs so that Chromium build won't break. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+807 lines, -1275 lines) Patch
D talk/app/webrtc/mediastreamhandler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -266 lines 0 comments Download
D talk/app/webrtc/mediastreamhandler.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -459 lines 0 comments Download
D talk/app/webrtc/mediastreamhandler_unittest.cc View 1 chunk +0 lines, -325 lines 0 comments Download
M talk/app/webrtc/mediastreamprovider.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M talk/app/webrtc/mediastreamsignaling.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M talk/app/webrtc/mediastreamsignaling.cc View 1 2 chunks +7 lines, -9 lines 0 comments Download
M talk/app/webrtc/mediastreamsignaling_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -21 lines 0 comments Download
M talk/app/webrtc/peerconnection.h View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -3 lines 0 comments Download
M talk/app/webrtc/peerconnection.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +95 lines, -16 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnectionproxy.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M talk/app/webrtc/rtpreceiver.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +77 lines, -1 line 0 comments Download
M talk/app/webrtc/rtpreceiver.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +77 lines, -1 line 0 comments Download
M talk/app/webrtc/rtpreceiverinterface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +39 lines, -1 line 0 comments Download
M talk/app/webrtc/rtpsender.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +113 lines, -1 line 0 comments Download
M talk/app/webrtc/rtpsender.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +178 lines, -1 line 0 comments Download
M talk/app/webrtc/rtpsenderinterface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +43 lines, -1 line 0 comments Download
A + talk/app/webrtc/rtpsenderreceiver_unittest.cc View 1 2 8 chunks +91 lines, -132 lines 0 comments Download
M talk/app/webrtc/test/fakemediastreamsignaling.h View 1 1 chunk +14 lines, -31 lines 0 comments Download
M talk/libjingle.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -2 lines 0 comments Download
M talk/libjingle_tests.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (10 generated)
Taylor Brandstetter
Hey Peter; I haven't cleaned this up AT ALL yet, but if you wanted more ...
5 years, 3 months ago (2015-09-17 01:42:35 UTC) #2
pthatcher1
This is looking really good already. Mostly, I think we just need to remove mid() ...
5 years, 3 months ago (2015-09-17 04:25:47 UTC) #3
Taylor Brandstetter
Note that this isn't quite complete; I still need to have SetTrack return true or ...
5 years, 3 months ago (2015-09-23 00:10:45 UTC) #4
pthatcher1
I agree that we should have another pair of eyes on the Java parts. Alex, ...
5 years, 2 months ago (2015-09-23 14:47:40 UTC) #6
pthatcher1
https://codereview.webrtc.org/1351803002/diff/60001/talk/app/webrtc/peerconnection.h File talk/app/webrtc/peerconnection.h (right): https://codereview.webrtc.org/1351803002/diff/60001/talk/app/webrtc/peerconnection.h#newcode215 talk/app/webrtc/peerconnection.h:215: RtpReceiverPairList rtp_receiver_pairs_; On 2015/09/23 14:47:39, pthatcher1 wrote: > *** ...
5 years, 2 months ago (2015-09-23 14:59:09 UTC) #7
AlexG
I think it may be worth to split this CL into two parts - submit ...
5 years, 2 months ago (2015-09-23 17:03:02 UTC) #8
Taylor Brandstetter
On 2015/09/23 17:03:02, AlexG wrote: > I think it may be worth to split this ...
5 years, 2 months ago (2015-09-23 17:06:03 UTC) #9
AlexG
On 2015/09/23 17:06:03, Taylor Brandstetter wrote: > On 2015/09/23 17:03:02, AlexG wrote: > > I ...
5 years, 2 months ago (2015-09-23 17:10:26 UTC) #10
Taylor Brandstetter
As discussed, I added an id method (currently just using id of track passed in), ...
5 years, 2 months ago (2015-09-23 20:50:37 UTC) #12
Taylor Brandstetter
As discussed, I added an id method (currently just using id of track passed in), ...
5 years, 2 months ago (2015-09-23 20:50:39 UTC) #13
pthatcher1
Mostly names and some style things. Otherwise, it's looking great. https://codereview.webrtc.org/1351803002/diff/60001/talk/app/webrtc/peerconnection.cc File talk/app/webrtc/peerconnection.cc (right): https://codereview.webrtc.org/1351803002/diff/60001/talk/app/webrtc/peerconnection.cc#newcode433 ...
5 years, 2 months ago (2015-09-24 06:32:30 UTC) #14
Taylor Brandstetter
https://codereview.webrtc.org/1351803002/diff/120001/talk/app/webrtc/peerconnection.cc File talk/app/webrtc/peerconnection.cc (right): https://codereview.webrtc.org/1351803002/diff/120001/talk/app/webrtc/peerconnection.cc#newcode482 talk/app/webrtc/peerconnection.cc:482: } On 2015/09/24 06:32:29, pthatcher1 wrote: > Why do ...
5 years, 2 months ago (2015-09-24 20:54:20 UTC) #15
pthatcher1
https://codereview.webrtc.org/1351803002/diff/120001/talk/app/webrtc/peerconnection.cc File talk/app/webrtc/peerconnection.cc (right): https://codereview.webrtc.org/1351803002/diff/120001/talk/app/webrtc/peerconnection.cc#newcode482 talk/app/webrtc/peerconnection.cc:482: } On 2015/09/24 20:54:20, Taylor Brandstetter wrote: > On ...
5 years, 2 months ago (2015-09-24 21:18:34 UTC) #16
pthatcher1
lgtm Great work. https://codereview.webrtc.org/1351803002/diff/160001/talk/app/webrtc/rtpreceiver.cc File talk/app/webrtc/rtpreceiver.cc (right): https://codereview.webrtc.org/1351803002/diff/160001/talk/app/webrtc/rtpreceiver.cc#newcode98 talk/app/webrtc/rtpreceiver.cc:98: void VideoRtpReceiver::Stop() { We should probably ...
5 years, 2 months ago (2015-09-24 21:35:22 UTC) #17
Taylor Brandstetter
https://codereview.webrtc.org/1351803002/diff/160001/talk/app/webrtc/rtpreceiver.cc File talk/app/webrtc/rtpreceiver.cc (right): https://codereview.webrtc.org/1351803002/diff/160001/talk/app/webrtc/rtpreceiver.cc#newcode98 talk/app/webrtc/rtpreceiver.cc:98: void VideoRtpReceiver::Stop() { On 2015/09/24 21:35:22, pthatcher1 wrote: > ...
5 years, 2 months ago (2015-09-24 22:00:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1351803002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1351803002/200001
5 years, 2 months ago (2015-09-28 18:07:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1351803002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1351803002/220001
5 years, 2 months ago (2015-09-28 19:59:07 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_rel on ...
5 years, 2 months ago (2015-09-28 20:42:47 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1351803002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1351803002/220001
5 years, 2 months ago (2015-09-28 23:52:55 UTC) #29
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 2 months ago (2015-09-28 23:54:01 UTC) #30
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 23:54:13 UTC) #31
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/70ab1a1ca89d280a7d51e3fadc51d4be9df209ca
Cr-Commit-Position: refs/heads/master@{#10100}

Powered by Google App Engine
This is Rietveld 408576698