8a130c1084
This is required in order to roll chromium_revision to keep up with Chrome, as third_party/android_tools have now dropped support for API level 19. Commands used: third_party/android_tools/sdk/tools/android update project --name OpenSlDemo --target android-20 --path webrtc/examples/android/opensl_loopback third_party/android_tools/sdk/tools/android update project --name WebRTCDemo --target android-20 --path webrtc/examples/android/media_demo/ third_party/android_tools/sdk/tools/android update project --name AppRTCDemo --target android-20 --path talk/examples/android/ Then I restored the changes of the ANDROID_SDK_ROOT -> ANDROID_HOME since it seems the Chromium build toolchain doesn't set it properly when build/android/envsetup.sh is sourced. BUG= R=glaznev@webrtc.org, henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/23309004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7582 4adac7df-926f-26a2-2b94-8c16560cd09d |
||
---|---|---|
.. | ||
assets | ||
jni | ||
res | ||
src/org/appspot/apprtc | ||
AndroidManifest.xml | ||
ant.properties | ||
build.xml | ||
project.properties | ||
README |
This directory contains an example Android client for http://apprtc.appspot.com Prerequisites: - "Android Specific Steps" on http://www.webrtc.org/reference/getting-started - 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 In desktop chrome, navigate to http://apprtc.appspot.com and note the r=<NNN> room this redirects to. Launch AppRTC on the device and enter the same <NNN> into the dialog box. Alternatively, replace the <NNN> from the desktop chrome into the following command: adb shell am start -n org.appspot.apprtc/.AppRTCDemoActivity -a android.intent.action.VIEW -d '"https://apprtc.appspot.com/?r=<NNN>"' This should result in the app launching on Android and connecting to the apprtc page displayed in the desktop browser. Yet another way to is to send the apprtc room URL to the Android device (e.g. using https://chrome.google.com/webstore/detail/google-chrome-to-phone-ex/oadboiipflhobonjjffjbfekfjcgkhco) and choose to open the URL with the AppRTCDemo app.