• Home
  • History
  • Annotate
  • only in /external/chromium_org/third_party/libjingle/source/talk/examples/android/
NameDateSize

..12-Mar-20154 KiB

AndroidManifest.xml12-Mar-20151.9 KiB

ant.properties12-Mar-2015698

assets/12-Mar-20154 KiB

build.xml12-Mar-20153.8 KiB

jni/12-Mar-20154 KiB

project.properties12-Mar-2015601

README12-Mar-20151.6 KiB

res/12-Mar-20154 KiB

src/12-Mar-20154 KiB

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