blob: 97e609117c016a884213c799d9136b9dc12218aa [file] [log] [blame]
janssondccbc5e2016-04-15 07:16:12 -07001This directory contains an example Android client for https://appr.tc
henrike@webrtc.org28e20752013-07-10 00:45:36 +00002
3Prerequisites:
sakalf72321a2016-09-16 01:35:00 -07004- "Getting the code", "Compiling", and "Using the Bundled Android SDK/NDK"
5 on http://www.webrtc.org/native-code/android
henrike@webrtc.org28e20752013-07-10 00:45:36 +00006
7Example of building & using the app:
8
glaznev@webrtc.org8390c272015-01-02 19:51:12 +00009cd <path/to/webrtc>/src
Magnus Jedvertc1815cf2016-09-27 10:10:41 +020010ninja -C out/Default AppRTCMobile
11adb install -r out/Default/apks/AppRTCMobile.apk
henrike@webrtc.org28e20752013-07-10 00:45:36 +000012
janssondccbc5e2016-04-15 07:16:12 -070013In desktop chrome, navigate to https://appr.tc and note the r=<NNN> room
14this redirects to or navigate directly to https://appr.tc/r/<NNN> with
glaznev@webrtc.org4b407aa2014-12-04 22:42:59 +000015your own room number. Launch AppRTC on the device and add same <NNN> into the room name list.
henrike@webrtc.org28e20752013-07-10 00:45:36 +000016
glaznev@webrtc.org4b407aa2014-12-04 22:42:59 +000017You can also run application from a command line to connect to the first room in a list:
18adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.action.VIEW
19This should result in the app launching on Android and connecting to the 3-dot-apprtc
henrike@webrtc.org28e20752013-07-10 00:45:36 +000020page displayed in the desktop browser.
glaznev@webrtc.org4b407aa2014-12-04 22:42:59 +000021To run loopback test execute following command:
22adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.action.VIEW --ez "org.appspot.apprtc.LOOPBACK" true
henrike@webrtc.org28e20752013-07-10 00:45:36 +000023