最新webrtc for android 下载及编译,webrtc权威开发指南

之前一直按如下方法同步webrtc代码,可一直不成功。

1.同步WebRTC代码

1.创建WebRTC目录 

mkdir WebRTC

cd WebRTC

2.初始化gclient

gclient config http://webrtc.googlecode.com/svn/trunk

3. 设计目标系统版本的配置

echo "target_os = ['android', 'unix']" >> .gclient

4. sync代码

gclient sync --nohook


今天按照如下网站指导下载代码:

http://www.webrtc.org/native-code/android

步骤:

Getting the code

Android development is only supported on Linux.
  1. Install Prerequisite software
  2. Set the path to your Java OpenJDK 7 dir if you're not using the Ubuntu default:
    export  JAVA_HOME=<location of OpenJDK 7>
  3. Set the target OS in your environment:
    export GYP_DEFINES="OS=android"
  4. Create a working directory, enter it, and run:
    fetch webrtc_android
    This will fetch a regular WebRTC checkout with the Android-specific parts added. The same checkout can be used for both Linux and Android development, depending on the OS you set in GYP_DEFINES (see above).
See  Development for instructions on how to update the code, building etc.

Using the bundled Android SDK/NDK

In order to use the Android SDK and NDK that is bundled in third_party/android_tools, run this to get it included in your PATH (from  src/ ):
. build/android/envsetup.sh
Then you'll have  adb and all the other Android tools in your PATH.

Running the AppRTCDemo app

AppRTCDemo is an Android application using WebRTC Native APIs via JNI ( JNI wrapper is documented  here ).
For instructions on how to build and run, see  talk/examples/android/README.


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值