This reverts commit 771b524606f43e682d63aa3a0724b21e8d14aac0. Reason for revert: Downstream usage removed Original change's description: > Revert "Delete pc/peerconnection build target" > > This reverts commit 18a42e3272a6a25a23042fd39e67de02def8cafb. > > Reason for revert: Breaks downstream project. > > Original change's description: > > Delete pc/peerconnection build target > > > > It is not useful any more. > > > > Bug: webrtc:13634, b/238176207 > > Change-Id: I3dd4ebca355bb828c6c3c30392333d9fe03a478c > > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/267821 > > Commit-Queue: Harald Alvestrand <hta@webrtc.org> > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > Cr-Commit-Position: refs/heads/main@{#41427} > > Bug: webrtc:13634, b/238176207 > Change-Id: Ib53e0b0cc81ac218e3c19e4c652ffe0b19155c22 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/332220 > Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> > Owners-Override: Christoffer Dewerin <jansson@google.com> > Commit-Queue: Christoffer Dewerin <jansson@google.com> > Cr-Commit-Position: refs/heads/main@{#41430} Bug: webrtc:13634, b/238176207 Change-Id: I3e99aa0ae37350b56e5f33be932f78903d1d4969 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/334120 Reviewed-by: Christoffer Dewerin <jansson@google.com> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41543}
This directory holds a Java implementation of the webrtc::PeerConnection API, as
well as the JNI glue C++ code that lets the Java implementation reuse the C++
implementation of the same API.
To build the Java API and related tests, make sure you have a WebRTC checkout
with Android specific parts. This can be used for linux development as well by
configuring gn appropriately, as it is a superset of the webrtc checkout:
fetch --nohooks webrtc_android
gclient sync
You also must generate GN projects with:
--args='target_os="android" target_cpu="arm"'
More information on getting the code, compiling and running the AppRTCMobile
app can be found at:
https://webrtc.org/native-code/android/
To use the Java API, start by looking at the public interface of
org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest.
To understand the implementation of the API, see the native code in src/jni/pc/.