• Home
Name Date Size #Lines LOC

..--

assets/03-May-2024-3526

jni/03-May-2024-30

res/03-May-2024-54

src/org/appspot/apprtc/03-May-2024-1,4561,068

AndroidManifest.xmlD03-May-20241.9 KiB4237

READMED03-May-20241.6 KiB3427

ant.propertiesD03-May-2024698 1813

build.xmlD03-May-20243.8 KiB9316

project.propertiesD03-May-2024601 1714

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