OLD | NEW |
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", "Compiling", and "Using the Bundled Android SDK/NDK" | 4 - "Getting the code", "Compiling", and "Using the Bundled Android SDK/NDK" |
5 on http://www.webrtc.org/native-code/android | 5 on http://www.webrtc.org/native-code/android |
6 | 6 |
7 Example of building & using the app: | 7 Example of building & using the app: |
8 | 8 |
9 cd <path/to/webrtc>/src | 9 cd <path/to/webrtc>/src |
10 ninja -C out/Default AppRTCMobile | 10 ninja -C out/Default AppRTCDemo |
11 adb install -r out/Default/apks/AppRTCMobile.apk | 11 adb install -r out/Default/apks/AppRTCDemo.apk |
12 | 12 |
13 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 |
14 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 |
15 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. |
16 | 16 |
17 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: |
18 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 |
19 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 |
20 page displayed in the desktop browser. | 20 page displayed in the desktop browser. |
21 To run loopback test execute following command: | 21 To run loopback test execute following command: |
22 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 |
23 | 23 |
OLD | NEW |