Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
assets/ | 03-May-2024 | - | 35 | 26 | ||
jni/ | 03-May-2024 | - | 3 | 0 | ||
res/ | 03-May-2024 | - | 5 | 4 | ||
src/org/appspot/apprtc/ | 03-May-2024 | - | 1,456 | 1,068 | ||
AndroidManifest.xml | D | 03-May-2024 | 1.9 KiB | 42 | 37 | |
README | D | 03-May-2024 | 1.6 KiB | 34 | 27 | |
ant.properties | D | 03-May-2024 | 698 | 18 | 13 | |
build.xml | D | 03-May-2024 | 3.8 KiB | 93 | 16 | |
project.properties | D | 03-May-2024 | 601 | 17 | 14 |
README
1This directory contains an example Android client for http://apprtc.appspot.com 2 3Prerequisites: 4- "Android Specific Steps" on http://www.webrtc.org/reference/getting-started 5- Set up webrtc-related GYP variables: 6 export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_java=1 $GYP_DEFINES" 7 To cause WEBRTC_LOGGING to emit to Android's logcat, add enable_tracing=1 to 8 the $GYP_DEFINES above. 9- When targeting both desktop & android, make sure to use a different output_dir 10 value in $GYP_GENERATOR_FLAGS or you'll likely end up with mismatched ARM & 11 x86 output artifacts. If you use an output_dir other than out/ make sure to 12 modify the command-lines below appropriately. 13- Finally, run "gclient runhooks" to generate Android-targeting .ninja files. 14 15Example of building & using the app: 16 17cd <path/to/libjingle>/trunk 18ninja -C out/Debug AppRTCDemo 19adb install -r out/Debug/AppRTCDemo-debug.apk 20 21In desktop chrome, navigate to http://apprtc.appspot.com and note the r=<NNN> room 22this redirects to. Launch AppRTC on the device and enter the same <NNN> into 23the dialog box. 24 25Alternatively, replace the <NNN> from the desktop chrome into the following 26command: 27adb shell am start -n org.appspot.apprtc/.AppRTCDemoActivity -a android.intent.action.VIEW -d '"https://apprtc.appspot.com/?r=<NNN>"' 28This should result in the app launching on Android and connecting to the apprtc 29page displayed in the desktop browser. 30 31Yet another way to is to send the apprtc room URL to the Android device (e.g. using 32https://chrome.google.com/webstore/detail/google-chrome-to-phone-ex/oadboiipflhobonjjffjbfekfjcgkhco) 33and choose to open the URL with the AppRTCDemo app. 34