Is it possible to build a native android-to-android video chat app using webrtc?
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
|
相关阅读排行
- 1屏幕分辨率(QQVGA、QVGA、VGA、XGA、WXGA、WUXGA和WSXGA+)
- 2视频无损剪切分割截取合并工具
- 3网页视频播放器代码大全 + 21个为您的网站和博客提供的免费视频播放器
- 4Android三种播放视频的方式
- 5Android 使WebView支持HTML5 Video(全屏)播放的方法