Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: webrtc/examples/androidapp/README

Issue 2338323005: Update anroidapp/README for GN build. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This directory contains an example Android client for https://appr.tc 1 This directory contains an example Android client for https://appr.tc
2 2
3 Prerequisites: 3 Prerequisites:
4 - "Getting the code" on http://www.webrtc.org/native-code/android 4 - "Getting the code", "Compiling", and "Using the Bundled Android SDK/NDK"
5 - Set up webrtc-related GYP variables: 5 on http://www.webrtc.org/native-code/android
6 export GYP_DEFINES="OS=android $GYP_DEFINES"
7 - When targeting both desktop & android, make sure to use a different output_dir
8 value in $GYP_GENERATOR_FLAGS - for example
9 export GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_android"
10 or you'll likely end up with mismatched ARM & x86 output artifacts.
11 If you use an output_dir other than out/ make sure to modify the command-lines
12 below appropriately.
13 - Finally, run "gclient runhooks" to generate Android-targeting .ninja files.
14 6
15 Example of building & using the app: 7 Example of building & using the app:
16 8
17 cd <path/to/webrtc>/src 9 cd <path/to/webrtc>/src
18 ninja -C out/Debug AppRTCDemo 10 ninja -C out/Default AppRTCDemo
19 adb install -r out/Debug/apks/AppRTCDemo.apk 11 adb install -r out/Default/apks/AppRTCDemo.apk
20 12
21 In desktop chrome, navigate to https://appr.tc and note the r=<NNN> room 13 In desktop chrome, navigate to https://appr.tc and note the r=<NNN> room
22 this redirects to or navigate directly to https://appr.tc/r/<NNN> with 14 this redirects to or navigate directly to https://appr.tc/r/<NNN> with
23 your own room number. Launch AppRTC on the device and add same <NNN> into the ro om name list. 15 your own room number. Launch AppRTC on the device and add same <NNN> into the ro om name list.
24 16
25 You can also run application from a command line to connect to the first room in a list: 17 You can also run application from a command line to connect to the first room in a list:
26 adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.acti on.VIEW 18 adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.acti on.VIEW
27 This should result in the app launching on Android and connecting to the 3-dot-a pprtc 19 This should result in the app launching on Android and connecting to the 3-dot-a pprtc
28 page displayed in the desktop browser. 20 page displayed in the desktop browser.
29 To run loopback test execute following command: 21 To run loopback test execute following command:
30 adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.acti on.VIEW --ez "org.appspot.apprtc.LOOPBACK" true 22 adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.acti on.VIEW --ez "org.appspot.apprtc.LOOPBACK" true
31 23
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698