webrtc很强大,一起学习吧。webrtc编译起来比较痛苦,源码和工具链下载下来十几G,源码samples里面提供了androidapp项目,只有源码,没有jar包和so库,所以我编译好webrtc,提取出所需的jar包和so文件,并把里面androidapp弄成android studio项目,可以正常编译运行。这个demo实现webrtc连麦,点对点视频通信,对webrtc初学者还是挺有帮助的。
以下是关于这个demo的详细信息,英文不是装逼,因为这个源码我分享在了github上面。
WebRTC Demos:webrtc-android-demo-apprtc
This demo is based on WebRTC.
WebRTC is a free, open project.The source code of this demo is based on official samples(src/samples/androidapp). I have compiled webrtc source to get required .so and .jar files, so you can just build it by android studio.
How to build and run?
Please clone this project,build it with android stuido,install the target apk files to your devices
How to start
1,go to website : https://appr.tc/.input your room id(any number).
2,open the apprtc app,input the same room id.
3,Experience p2p connectivity with webrtc.
Future
Maybe I will share more articles about webrtc in the future.
Thanks to WebRTC team!
Dusan’s E-mail: duqian2010@gmail.com
WebRTC Demos:webrtc-android-demo-apprtc
如果对webrtc编译感兴趣,以下是我在linux ubuntu 14.04上编译webrtc所用的命令,希望对你有帮助。
Development
if you try to compile src of webrtc,you’ll depressed
at its large size,the total checkout size will be about 16 GB. and more than 30G after compiled.
for more details about getting source code: https://webrtc.org/native-code/android/
if you have installed all required softwares in linux.
let’s excute cmds like this:
|
|
谢,喜欢就分享吧。
杜乾,Dusan,duqian2010@gmail.com,QQ:291902259
微信公众号:OpenDeveloper
分享不仅限于Android,Web 开发,做开放的开发者。
Blog:http://blog.csdn.net/dzsw0117
Github:duqian291902259