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

Issue 1368143002: Java binding for RtpSender/RtpReceiver. (Closed)

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

Description

Java binding for RtpSender/RtpReceiver. The Java PeerConnection maintains a cached list of Java RtpSenders and RtpReceivers so that the same objects are returned every time getSenders() or getReceivers() is called. They are disposed of when PeerConnection.dispose() is called, which will also dispose their referenced MediaStreamTracks. Committed: https://crrev.com/4139c0f1c53509ea48c936b58a22a66e63e51fda Cr-Commit-Position: refs/heads/master@{#10189}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Minor cleanup. #

Patch Set 3 : Fixing typo. #

Total comments: 8

Patch Set 4 : Simplifying code for updateReceivers/updateSenders. #

Total comments: 2

Patch Set 5 : Getting rid of updateSenders. Instead, getSenders will update the stored list and dispose of old ob… #

Total comments: 21

Patch Set 6 : Addressing comments. #

Total comments: 2

Patch Set 7 : Getting rid of obsolete methods, and using unmodifiableList. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -36 lines) Patch
M talk/app/webrtc/java/jni/classreferenceholder.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/jni/peerconnection_jni.cc View 1 2 3 4 5 6 5 chunks +108 lines, -1 line 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/PeerConnection.java View 1 2 3 4 5 6 5 chunks +35 lines, -0 lines 0 comments Download
A + talk/app/webrtc/java/src/org/webrtc/RtpReceiver.java View 1 2 3 4 5 1 chunk +25 lines, -19 lines 0 comments Download
A + talk/app/webrtc/java/src/org/webrtc/RtpSender.java View 1 2 3 4 5 1 chunk +38 lines, -16 lines 0 comments Download
M talk/app/webrtc/java/testcommon/src/org/webrtc/PeerConnectionTest.java View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M talk/libjingle.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
Taylor Brandstetter
Hi Alex; here are the Java changes split out of the RtpSender CL. https://codereview.webrtc.org/1368143002/diff/1/talk/app/webrtc/java/jni/peerconnection_jni.cc File ...
5 years, 2 months ago (2015-09-25 19:48:30 UTC) #2
pthatcher1
Looking good. Just style stuff. https://codereview.webrtc.org/1368143002/diff/40001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java File talk/app/webrtc/java/src/org/webrtc/PeerConnection.java (right): https://codereview.webrtc.org/1368143002/diff/40001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java#newcode165 talk/app/webrtc/java/src/org/webrtc/PeerConnection.java:165: private final List<RtpReceiver> rtpReceivers; ...
5 years, 2 months ago (2015-09-25 21:27:27 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/1368143002/diff/40001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java File talk/app/webrtc/java/src/org/webrtc/PeerConnection.java (right): https://codereview.webrtc.org/1368143002/diff/40001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java#newcode165 talk/app/webrtc/java/src/org/webrtc/PeerConnection.java:165: private final List<RtpReceiver> rtpReceivers; On 2015/09/25 21:27:27, pthatcher1 wrote: ...
5 years, 2 months ago (2015-09-25 23:01:08 UTC) #5
AlexG
https://codereview.webrtc.org/1368143002/diff/60001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java File talk/app/webrtc/java/src/org/webrtc/PeerConnection.java (right): https://codereview.webrtc.org/1368143002/diff/60001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java#newcode224 talk/app/webrtc/java/src/org/webrtc/PeerConnection.java:224: updateSenders(); Pass 1: Instead of calling updateSenders() on all ...
5 years, 2 months ago (2015-09-25 23:40:00 UTC) #6
Taylor Brandstetter
https://codereview.webrtc.org/1368143002/diff/60001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java File talk/app/webrtc/java/src/org/webrtc/PeerConnection.java (right): https://codereview.webrtc.org/1368143002/diff/60001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java#newcode224 talk/app/webrtc/java/src/org/webrtc/PeerConnection.java:224: updateSenders(); On 2015/09/25 23:40:00, AlexG wrote: > Pass 1: ...
5 years, 2 months ago (2015-09-26 00:15:49 UTC) #7
Taylor Brandstetter
Hi Alex; just a reminder, I was still hoping to get your feedback on this. ...
5 years, 2 months ago (2015-09-30 17:53:30 UTC) #8
AlexG
On 2015/09/30 17:53:30, Taylor Brandstetter wrote: > Hi Alex; just a reminder, I was still ...
5 years, 2 months ago (2015-09-30 18:18:46 UTC) #9
Taylor Brandstetter
As we discussed, I'm now just retrieving the senders each time getSenders is called.
5 years, 2 months ago (2015-10-02 18:53:41 UTC) #10
AlexG
https://codereview.webrtc.org/1368143002/diff/80001/talk/app/webrtc/java/jni/peerconnection_jni.cc File talk/app/webrtc/java/jni/peerconnection_jni.cc (right): https://codereview.webrtc.org/1368143002/diff/80001/talk/app/webrtc/java/jni/peerconnection_jni.cc#newcode978 talk/app/webrtc/java/jni/peerconnection_jni.cc:978: reinterpret_cast<MediaStreamTrackInterface*>(j_p)->Release(); Can you explain why CHECK_RELEASE is removed? https://codereview.webrtc.org/1368143002/diff/80001/talk/app/webrtc/java/jni/peerconnection_jni.cc#newcode1936 ...
5 years, 2 months ago (2015-10-02 22:44:36 UTC) #11
Taylor Brandstetter
https://codereview.webrtc.org/1368143002/diff/80001/talk/app/webrtc/java/jni/peerconnection_jni.cc File talk/app/webrtc/java/jni/peerconnection_jni.cc (right): https://codereview.webrtc.org/1368143002/diff/80001/talk/app/webrtc/java/jni/peerconnection_jni.cc#newcode978 talk/app/webrtc/java/jni/peerconnection_jni.cc:978: reinterpret_cast<MediaStreamTrackInterface*>(j_p)->Release(); On 2015/10/02 22:44:35, AlexG wrote: > Can you ...
5 years, 2 months ago (2015-10-03 01:50:10 UTC) #12
AlexG
lgtm https://codereview.webrtc.org/1368143002/diff/80001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java File talk/app/webrtc/java/src/org/webrtc/PeerConnection.java (right): https://codereview.webrtc.org/1368143002/diff/80001/talk/app/webrtc/java/src/org/webrtc/PeerConnection.java#newcode236 talk/app/webrtc/java/src/org/webrtc/PeerConnection.java:236: return new ArrayList<RtpSender>(senders); On 2015/10/03 01:50:10, Taylor Brandstetter ...
5 years, 2 months ago (2015-10-05 22:44:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368143002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368143002/120001
5 years, 2 months ago (2015-10-06 18:56:45 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 2 months ago (2015-10-06 19:29:29 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-10-06 19:29:42 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4139c0f1c53509ea48c936b58a22a66e63e51fda
Cr-Commit-Position: refs/heads/master@{#10189}

Powered by Google App Engine
This is Rietveld 408576698