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

Issue 2127893002: AndroidVideoTrackSource implementation (Closed)

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

Description

This implementation greatly simplifies Android video capturing stack. The old stack will be removed soon in a separate CL. Constraints will not be supported in the new implementation. Apps can request a format directly and the closest supported format will be selected. Changes needed from the apps: 1. Use the new createVideoSource without constraints. 2. Call startCapture manually. 3. Don't call videoSource.stop/restart, use startCapture/stopCapture instead. R=magjed@webrtc.org TBR=kjellander@webrtc.org Committed: https://crrev.com/16032126eda1d723492248859e40c26cdb1e93ee Cr-Commit-Position: refs/heads/master@{#13504}

Patch Set 1 #

Patch Set 2 : Update. #

Patch Set 3 : Update 2. #

Patch Set 4 : Forwards calls through proxy. #

Patch Set 5 : Add thread checks. #

Patch Set 6 : Change videoSourceStopped to videoCapturerStopped. #

Total comments: 36

Patch Set 7 : Changes according to magjed's comments. #

Total comments: 10

Patch Set 8 : Changes according to magjed's comments #2 #

Total comments: 1

Patch Set 9 : Add OWNERs for files. #

Patch Set 10 : Fix cpplint errors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+665 lines, -74 lines) Patch
M webrtc/api/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/api/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java View 1 2 3 4 5 6 3 chunks +21 lines, -2 lines 0 comments Download
M webrtc/api/android/java/src/org/webrtc/VideoCapturer.java View 1 2 3 4 5 6 3 chunks +55 lines, -0 lines 0 comments Download
M webrtc/api/android/java/src/org/webrtc/VideoCapturerAndroid.java View 1 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/api/android/java/src/org/webrtc/VideoSource.java View 1 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/api/android/jni/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/api/android/jni/androidvideotracksource_jni.cc View 1 2 3 4 5 6 7 8 9 1 chunk +88 lines, -0 lines 0 comments Download
M webrtc/api/android/jni/peerconnection_jni.cc View 1 2 3 7 chunks +59 lines, -5 lines 0 comments Download
M webrtc/api/androidtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
A webrtc/api/androidvideotracksource.h View 1 2 3 4 5 6 1 chunk +124 lines, -0 lines 0 comments Download
A webrtc/api/androidvideotracksource.cc View 1 2 3 4 5 6 7 8 9 1 chunk +260 lines, -0 lines 0 comments Download
M webrtc/api/api.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java View 1 2 3 4 5 6 9 chunks +39 lines, -61 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (16 generated)
sakal
Magnus, PTAL.
4 years, 5 months ago (2016-07-18 14:15:27 UTC) #3
magjed_webrtc
https://codereview.webrtc.org/2127893002/diff/100001/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java File webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java (right): https://codereview.webrtc.org/2127893002/diff/100001/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java#newcode116 webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java:116: public VideoSource createVideoSource( Comment that this function is deprecated. ...
4 years, 5 months ago (2016-07-19 12:57:47 UTC) #5
sakal
https://codereview.webrtc.org/2127893002/diff/100001/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java File webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java (right): https://codereview.webrtc.org/2127893002/diff/100001/webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java#newcode116 webrtc/api/android/java/src/org/webrtc/PeerConnectionFactory.java:116: public VideoSource createVideoSource( On 2016/07/19 12:57:46, magjed_webrtc wrote: > ...
4 years, 5 months ago (2016-07-19 13:46:23 UTC) #6
magjed_webrtc
lgtm https://codereview.webrtc.org/2127893002/diff/120001/webrtc/api/android/jni/androidvideotracksource_jni.cc File webrtc/api/android/jni/androidvideotracksource_jni.cc (right): https://codereview.webrtc.org/2127893002/diff/120001/webrtc/api/android/jni/androidvideotracksource_jni.cc#newcode35 webrtc/api/android/jni/androidvideotracksource_jni.cc:35: auto source = AndroidVideoTrackSourceFromJavaProxy(j_source); I prefer 'webrtc::AndroidVideoTrackSource*' over ...
4 years, 5 months ago (2016-07-19 14:42:29 UTC) #7
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/2127893002/140001
4 years, 5 months ago (2016-07-20 08:04:36 UTC) #10
sakal
https://codereview.webrtc.org/2127893002/diff/120001/webrtc/api/android/jni/androidvideotracksource_jni.cc File webrtc/api/android/jni/androidvideotracksource_jni.cc (right): https://codereview.webrtc.org/2127893002/diff/120001/webrtc/api/android/jni/androidvideotracksource_jni.cc#newcode35 webrtc/api/android/jni/androidvideotracksource_jni.cc:35: auto source = AndroidVideoTrackSourceFromJavaProxy(j_source); On 2016/07/19 14:42:28, magjed_webrtc wrote: ...
4 years, 5 months ago (2016-07-20 08:06:28 UTC) #11
magjed_webrtc
https://codereview.webrtc.org/2127893002/diff/140001/webrtc/api/android/java/src/org/webrtc/VideoCapturer.java File webrtc/api/android/java/src/org/webrtc/VideoCapturer.java (right): https://codereview.webrtc.org/2127893002/diff/140001/webrtc/api/android/java/src/org/webrtc/VideoCapturer.java#newcode24 webrtc/api/android/java/src/org/webrtc/VideoCapturer.java:24: void onCapturerStopped(); We should probably add onCapturerStarting() as well ...
4 years, 5 months ago (2016-07-20 08:08:29 UTC) #12
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/6903)
4 years, 5 months ago (2016-07-20 08:18:27 UTC) #14
sakal
TBR kjellander for the BUILD.gn file.
4 years, 5 months ago (2016-07-20 08:38:40 UTC) #17
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/2127893002/160001
4 years, 5 months ago (2016-07-20 08:39:08 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios64_gn_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_gn_rel/builds/1247)
4 years, 5 months ago (2016-07-20 08:48:38 UTC) #22
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/2127893002/180001
4 years, 5 months ago (2016-07-20 09:15:53 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/14931)
4 years, 5 months ago (2016-07-20 10:04:10 UTC) #27
sakal
Committed patchset #10 (id:180001) manually as 16032126eda1d723492248859e40c26cdb1e93ee (presubmit successful).
4 years, 5 months ago (2016-07-20 14:13:31 UTC) #29
kjellander_webrtc
4 years, 5 months ago (2016-07-24 08:12:22 UTC) #31
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698