Build Android Webrtc Libjingle Library On Ubuntu

Posted 庄泽波の博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Build Android Webrtc Libjingle Library On Ubuntu相关的知识,希望对你有一定的参考价值。

   Recently, our team is developing an app to help people solve problem face to face.

We choose webrtc protocol as our bridge among different platform(android, ios, browser etc).

But there is a hole in Android 6.0 system, the protocol can not support Android 6.0 system.

As we known, libjingle (http://mvnrepository.com/artifact/io.pristine) was built in December, 2015,

it hasn‘t been updated for at least one year. I do not know if webrtc is abandoned by Google, but

a lot of developers are still creating app by it.

    Fortunately, though the official website does not offer the latest library, it give us a script which

shows us how to build it. 

 

1. Download webrtc library

https://webrtc.org/native-code/android/

Note: The source code of webrtc is quite large, you must have at least 40 gigabytes(GB) hard drive in your PC.

 

2. Download webrtc build scripts.

git clone https://github.com/pristineio/webrtc-build-scripts.git

Note: you can use this script to download webrtc library, skip step 1.

3. Build libjingle

source android/build.sh
build_apprtc

Note: webrtc source code must be under the folder 

webrtc-build-scripts/webrtc/src/[source code]

 

以上是关于Build Android Webrtc Libjingle Library On Ubuntu的主要内容,如果未能解决你的问题,请参考以下文章

android中的重复WebRTC类

从 Android 的源代码构建 WebRTC 时出错

Android App给App集成WebRTC实现视频发送和接受实战(附源码和演示 超详细)

webrtc build.sh

Android 断点调试 webrtcmedieasoup

如何正确地在android上计算webrtc