PeerConnectionFactory.initialize() should be the first call before any other call to the Android WebRTC API. The reason this is important is mainly because PeerConnectionFactory.initialize() loads the native C++ code, so all other WebRTC calls that rely on native calls will fail before this has been done. Bug: webrtc:7474, webrtc:9153 Change-Id: Id0cb78eaf18ea036f39d616d00ac6e32696266bb Reviewed-on: https://webrtc-review.googlesource.com/70428 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22954}
This directory contains an example unit test for Android AppRTCMobile. Example of building & using the app: - Build Android AppRTCMobile and AppRTCMobile unit test: cd <path/to/webrtc>/src ninja -C out/Debug AppRTCMobileTest - Install AppRTCMobile and AppRTCMobileTest: adb install -r out/Debug/apks/AppRTCMobile.apk adb install -r out/Debug/apks/AppRTCMobileTest.apk - Run unit tests: adb shell am instrument -w org.appspot.apprtc.test/android.test.InstrumentationTestRunner