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

Issue 2939203002: Support building WebRTC without audio and video for Android (Closed)

Created:
3 years, 6 months ago by Zhi Huang
Modified:
3 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com, mflodman, kwiberg-webrtc, stefan-webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Support building WebRTC without audio and video for Android This CL makes the WebRTC Java Wrapper more modular and allows the android users to build WebRTC without audio and video(DataChannel only). The BUILD file in sdk/android/ is modified to support modular WebRTC. The peerconnection_jni.cc is split into peerconnection_jni.cc, video_jni.cc, video_renderer_jni.cc and ownedfactoryandthreads.h/cc. Add new modular build targets to JNI layer: audio_jni, video_jni, null_audio_jni, null_video_jni. The users can link with different targets to for different WebRTC functionalities. This is split from CL: https://codereview.webrtc.org/2854123003/ TBR=magjed@webrtc.org BUG=webrtc:7613 Review-Url: https://codereview.webrtc.org/2939203002 Cr-Commit-Position: refs/heads/master@{#18647} Committed: https://chromium.googlesource.com/external/webrtc/+/af6293517fa80247f227fa80846d74ea5eef18c2

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Fix the issue triggered by gn comments. #

Patch Set 4 : Rebase. #

Total comments: 13

Patch Set 5 : Add [null_]media_jni targets. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1101 lines, -359 lines) Patch
M webrtc/sdk/android/BUILD.gn View 1 2 3 4 5 chunks +226 lines, -31 lines 0 comments Download
M webrtc/sdk/android/instrumentationtests/src/org/webrtc/PeerConnectionTest.java View 1 chunk +150 lines, -0 lines 0 comments Download
M webrtc/sdk/android/src/jni/DEPS View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/audio_jni.h View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/audio_jni.cc View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/media_jni.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/media_jni.cc View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/null_audio_jni.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/null_media_jni.cc View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/null_video_jni.cc View 1 chunk +40 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/ownedfactoryandthreads.h View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/ownedfactoryandthreads.cc View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
M webrtc/sdk/android/src/jni/peerconnection_jni.cc View 1 2 3 4 13 chunks +19 lines, -328 lines 0 comments Download
A webrtc/sdk/android/src/jni/video_jni.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/video_jni.cc View 1 2 3 4 1 chunk +108 lines, -0 lines 0 comments Download
A webrtc/sdk/android/src/jni/video_renderer_jni.cc View 1 2 3 1 chunk +190 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (28 generated)
Taylor Brandstetter
https://codereview.webrtc.org/2939203002/diff/100001/webrtc/sdk/android/BUILD.gn File webrtc/sdk/android/BUILD.gn (right): https://codereview.webrtc.org/2939203002/diff/100001/webrtc/sdk/android/BUILD.gn#newcode25 webrtc/sdk/android/BUILD.gn:25: rtc_static_library("base_jni") { May want to make these rtc_source_sets https://codereview.webrtc.org/2939203002/diff/100001/webrtc/sdk/android/BUILD.gn#newcode215 ...
3 years, 6 months ago (2017-06-16 22:19:09 UTC) #15
Zhi Huang
PTAL https://codereview.webrtc.org/2939203002/diff/100001/webrtc/sdk/android/BUILD.gn File webrtc/sdk/android/BUILD.gn (right): https://codereview.webrtc.org/2939203002/diff/100001/webrtc/sdk/android/BUILD.gn#newcode25 webrtc/sdk/android/BUILD.gn:25: rtc_static_library("base_jni") { On 2017/06/16 22:19:08, Taylor Brandstetter wrote: ...
3 years, 6 months ago (2017-06-17 01:46:44 UTC) #21
Taylor Brandstetter
lgtm. I think this is about as clean as we can get with this approach; ...
3 years, 6 months ago (2017-06-17 04:41:40 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/2939203002/220001
3 years, 6 months ago (2017-06-18 05:10:41 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:220001) as https://chromium.googlesource.com/external/webrtc/+/af6293517fa80247f227fa80846d74ea5eef18c2
3 years, 6 months ago (2017-06-18 05:31:29 UTC) #31
magjed_webrtc
3 years, 6 months ago (2017-06-19 16:48:16 UTC) #34
Message was sent while issue was closed.
On 2017/06/18 05:31:29, commit-bot: I haz the power wrote:
> Committed patchset #5 (id:220001) as
>
https://chromium.googlesource.com/external/webrtc/+/af6293517fa80247f227fa808...

I had some comments on this CL, but I decided it was faster and easier to just
fix it myself. See https://chromium-review.googlesource.com/c/539456/ if you are
interested in what I changed.

Powered by Google App Engine
This is Rietveld 408576698