2016-04-15 07:16:12 -07:00
|
|
|
This directory contains an example Android client for https://appr.tc
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
Prerequisites:
|
2016-09-16 01:35:00 -07:00
|
|
|
- "Getting the code", "Compiling", and "Using the Bundled Android SDK/NDK"
|
|
|
|
|
on http://www.webrtc.org/native-code/android
|
2013-07-10 00:45:36 +00:00
|
|
|
|
|
|
|
|
Example of building & using the app:
|
|
|
|
|
|
2015-01-02 19:51:12 +00:00
|
|
|
cd <path/to/webrtc>/src
|
2016-09-27 10:10:41 +02:00
|
|
|
ninja -C out/Default AppRTCMobile
|
|
|
|
|
adb install -r out/Default/apks/AppRTCMobile.apk
|
2013-07-10 00:45:36 +00:00
|
|
|
|
2016-04-15 07:16:12 -07:00
|
|
|
In desktop chrome, navigate to https://appr.tc and note the r=<NNN> room
|
|
|
|
|
this redirects to or navigate directly to https://appr.tc/r/<NNN> with
|
2014-12-04 22:42:59 +00:00
|
|
|
your own room number. Launch AppRTC on the device and add same <NNN> into the room name list.
|
2013-07-10 00:45:36 +00:00
|
|
|
|
2014-12-04 22:42:59 +00:00
|
|
|
You can also run application from a command line to connect to the first room in a list:
|
|
|
|
|
adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.action.VIEW
|
|
|
|
|
This should result in the app launching on Android and connecting to the 3-dot-apprtc
|
2013-07-10 00:45:36 +00:00
|
|
|
page displayed in the desktop browser.
|
2014-12-04 22:42:59 +00:00
|
|
|
To run loopback test execute following command:
|
|
|
|
|
adb shell am start -n org.appspot.apprtc/.ConnectActivity -a android.intent.action.VIEW --ez "org.appspot.apprtc.LOOPBACK" true
|
2013-07-10 00:45:36 +00:00
|
|
|
|