2014-12-04 23:42:59 +01:00
|
|
|
This directory contains an example Android client for https://3-dot-apprtc.appspot.com
|
2013-07-10 02:45:36 +02:00
|
|
|
|
|
|
|
Prerequisites:
|
2014-05-28 19:29:09 +02:00
|
|
|
- "Android Specific Steps" on http://www.webrtc.org/reference/getting-started
|
2013-07-10 02:45:36 +02:00
|
|
|
- Set up webrtc-related GYP variables:
|
|
|
|
export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_java=1 $GYP_DEFINES"
|
|
|
|
To cause WEBRTC_LOGGING to emit to Android's logcat, add enable_tracing=1 to
|
|
|
|
the $GYP_DEFINES above.
|
|
|
|
- When targeting both desktop & android, make sure to use a different output_dir
|
|
|
|
value in $GYP_GENERATOR_FLAGS or you'll likely end up with mismatched ARM &
|
|
|
|
x86 output artifacts. If you use an output_dir other than out/ make sure to
|
|
|
|
modify the command-lines below appropriately.
|
|
|
|
- Finally, run "gclient runhooks" to generate Android-targeting .ninja files.
|
|
|
|
|
|
|
|
Example of building & using the app:
|
|
|
|
|
|
|
|
cd <path/to/libjingle>/trunk
|
|
|
|
ninja -C out/Debug AppRTCDemo
|
|
|
|
adb install -r out/Debug/AppRTCDemo-debug.apk
|
|
|
|
|
2014-12-04 23:42:59 +01:00
|
|
|
In desktop chrome, navigate to https://3-dot-apprtc.appspot.com and note the r=<NNN> room
|
|
|
|
this redirects to or navigate directly to https://3-dot-apprtc.appspot.com/room/<NNN> with
|
|
|
|
your own room number. Launch AppRTC on the device and add same <NNN> into the room name list.
|
2013-07-10 02:45:36 +02:00
|
|
|
|
2014-12-04 23:42:59 +01: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 02:45:36 +02:00
|
|
|
page displayed in the desktop browser.
|
2014-12-04 23:42:59 +01: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 02:45:36 +02:00
|
|
|
|