ITKeyword,专注技术干货聚合推荐

注册 | 登录

Is it possible to build a native android-to-android video chat app using webrtc?

itPublisher 分享于

2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1062

2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址https://www.aliyun.com/minisite/goods

推荐:在Ubuntu12.10-32bit上构建、测试WebRTC之Android示例WebRTCDemo(video_engine)

参考资料: http://www.webrtc.org/reference/getting-started http://www.webrtc.org/reference/getting-started/prerequisite-sw http://code.google.com/p/we

I see a lot of tutorials in the Internet teaching about android to browser or browser to browser webrtc application. Is it possible to build a native android-to-android video chat app using webrtc?

android webrtc
|
  this question
asked Sep 13 '15 at 15:12 YinYin Chiu 18 4

 | 

3 Answers
3

WebRTC uses ICE protocol for creating connection between two peers. It uses DTLS-SRTP for creating secure data exchange between peers.

Now both ICE protocol and DTLS-SRTP are protocols that can be implemented on any devices no matter what platform. You implement or use existing implementation of ICE and DTLS-SRTP protocol on your android apps and communicate with each other.

When you read tutorials about implementation of WebRTC for communication between android app and browser, there the android app has the implementation of both ICE and DTLS-SRTP. So this android app can communicate with other android app having similar implementation.


|
  this answer
answered Sep 13 '15 at 16:41 Tahlil 1,498 2 22 42

 | 

in addition to @tahlil great answer, you can also use a number of open source SDKs out there that already took the burden on bundling the WebRTC libraries and offering simple APIs for you to integrate Real Time Communications in your native app. One example of such SDK is the RestComm Android SDK See https://github.com/Mobicents/restcomm-android-sdk and http://www.telestax.com/restcomm-client-android-sdk-beta-2-is-out/


|
  this answer
answered Sep 14 '15 at 7:18 jeand 1,853 9 11

 |  -1

For all who are still searching for a native solution without any servers. I figured out a way to use the WebView with WebRTC and without any STUN/TURN/ICE servers. The trick is to implement the handshake between the WebRTC instances on the devices. I used a sirect socket connection between the devices. You can download the source for a working example at https://github.com/hilderonny/simplevideochat. Sorry for the missing code documentation, I am still working on it.


|
  this answer
answered Feb 22 '16 at 20:04 hilderonny 76 3

 | 


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。