jansson | dccbc5e | 2016-04-15 07:16:12 -0700 | [diff] [blame] | 1 | This directory contains an example Android client for https://appr.tc |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 2 | |
| 3 | Prerequisites: |
sakal | f72321a | 2016-09-16 01:35:00 -0700 | [diff] [blame] | 4 | - "Getting the code", "Compiling", and "Using the Bundled Android SDK/NDK" |
| 5 | on http://www.webrtc.org/native-code/android |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 6 | |
| 7 | Example of building & using the app: |
| 8 | |
glaznev@webrtc.org | 8390c27 | 2015-01-02 19:51:12 +0000 | [diff] [blame] | 9 | cd <path/to/webrtc>/src |
Magnus Jedvert | c1815cf | 2016-09-27 10:10:41 +0200 | [diff] [blame] | 10 | ninja -C out/Default AppRTCMobile |
| 11 | adb install -r out/Default/apks/AppRTCMobile.apk |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 12 | |
jansson | dccbc5e | 2016-04-15 07:16:12 -0700 | [diff] [blame] | 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 |
glaznev@webrtc.org | 4b407aa | 2014-12-04 22:42:59 +0000 | [diff] [blame] | 15 | your own room number. Launch AppRTC on the device and add same <NNN> into the room name list. |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 16 | |
glaznev@webrtc.org | 4b407aa | 2014-12-04 22:42:59 +0000 | [diff] [blame] | 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.action.VIEW |
| 19 | This should result in the app launching on Android and connecting to the 3-dot-apprtc |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 20 | page displayed in the desktop browser. |
glaznev@webrtc.org | 4b407aa | 2014-12-04 22:42:59 +0000 | [diff] [blame] | 21 | To run loopback test execute following command: |
| 22 | adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.action.VIEW --ez "org.appspot.apprtc.LOOPBACK" true |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 23 | |