You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
1005 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. To build the Java API and related tests, include libjingle_java=1 in $GYP_DEFINES.
  5. To use the Java API, start by looking at the public interface of
  6. org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest.
  7. To understand the implementation of the API, see the native code in jni/.
  8. An example command-line to build & run the unittest:
  9. export R=path/to/trunk
  10. cd $R
  11. GYP_GENERATORS=ninja GYP_DEFINES=libjingle_java=1 gclient runhooks
  12. ninja -C out/Debug libjingle_peerconnection_test_jar
  13. LD_LIBRARY_PATH=$R/out/Debug java -classpath ${R}/third_party/junit/junit-4.11.jar:${R}/out/Debug/libjingle_peerconnection_test.jar:${R}/out/Debug/libjingle_peerconnection.jar junit.textui.TestRunner org.webrtc.PeerConnectionTest
  14. During development it can be helpful to run the JVM with the -Xcheck:jni flag.