Is it possible to create a native video chat application with an Android phone using webrtc?

I see many tutorials on the Internet about an android browser or browser in the webrtc browser application. Is it possible to create a native video chat application with an Android phone using webrtc?

+4
source share
3 answers

WebRTC uses the ICE protocol to create a connection between two peers. It uses DTLS-SRTP to create secure peer-to-peer communication.

Now, both ICE and DTLS-SRTP are protocols that can be implemented on any device regardless of platform. You implement or use the existing implementation of ICE and DTLS-SRTP in your Android applications and communicate with each other.

When you read WebRTC implementation guides for communicating between an Android application and a browser, the Android application has both ICE and DTLS-SRTP implementations. Thus, this Android application can interact with another Android application with a similar implementation.

0
source

For everyone who is still looking for their own solution without any servers. I figured out how to use WebView with WebRTC and without any STUN / TURN / ICE servers. The trick is to implement handshakes between WebRTC instances on devices. I used a direct socket connection between devices. You can download the source for a working example at https://github.com/hilderonny/simplevideochat . Sorry for the missing code documentation, I'm still working on it.

-1
source

Source: https://habr.com/ru/post/1607170/


All Articles