henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 1 | This directory holds a Java implementation of the webrtc::PeerConnection API, as |
| 2 | well as the JNI glue C++ code that lets the Java implementation reuse the C++ |
| 3 | implementation of the same API. |
| 4 | |
Seth Hampson | 243cd32 | 2018-03-01 00:07:56 | [diff] [blame] | 5 | To build the Java API and related tests, make sure you have a WebRTC checkout |
| 6 | with Android specific parts. This can be used for linux development as well by |
| 7 | configuring gn appropriately, as it is a superset of the webrtc checkout: |
| 8 | fetch --nohooks webrtc_android |
| 9 | gclient sync |
| 10 | |
| 11 | You also must generate GN projects with: |
| 12 | --args='target_os="android" target_cpu="arm"' |
| 13 | |
| 14 | More information on getting the code, compiling and running the AppRTCMobile |
| 15 | app can be found at: |
| 16 | https://webrtc.org/native-code/android/ |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 | [diff] [blame] | 17 | |
| 18 | To use the Java API, start by looking at the public interface of |
| 19 | org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest. |
| 20 | |
Seth Hampson | 243cd32 | 2018-03-01 00:07:56 | [diff] [blame] | 21 | To understand the implementation of the API, see the native code in src/jni/pc/. |