WebRTC on Android

I downloaded the webRtc.In source code in which I found the WEbRTCDemo test project for Android. I can generate an APK BUt, when I install it, my device is not able to communicate with both devices .... Steps What I do .. 1. In the application settings-> HostId: I put the IP address of another Android device and clicked the start button but the problem is on the other side. Nothing happens.

My question is: 1. Do I need to install on any server to communicate with another device? 2. Can someone explain how it works in the case of an Android device. Please help me. Thank you Krsna.

+4
source share
1 answer

Yes, you definitely need a "messaging server." Your task is to transfer SDP from one client to another. SDP includes ICE candidates who basically tell the client how to directly "reach" another (IP address + port combination). Once clients have exchanged these โ€œhandshakeโ€ signals, they can begin to transmit their flows to peers.

Now the implementation of this server is completely left to you. Since it is separate from the rest of the WebRTC API, you can safely use any technology to allow these signaling messages to be exchanged between two clients. And once you have successfully installed PeerConnection , you can even use DataChannels to reconcile from there.

To take stock,

  • Yes, you need a server to transfer messages between two clients.
  • Since this does not depend on the implementation of WebRTC, you can resort to any technology of your choice.
+3
source

All Articles