1

I am going to develop an application which includes Audio/Video/Text chat.

I read IceLink documentation and demo. From that what I understood is we need to do signalling using WebSync to connect two peers.

But I couldn’t understand how to do it.

My questions are (suppose A wants to call B):
1. How A knows the address of B (whatever it may be like, ID or anything)
2. How B comes to know that A is calling him/her

Jagruttam Panchal
  • 3,152
  • 2
  • 15
  • 21

2 Answers2

3

We once build an App with P2P Connection via IceLink. But we didn´t use the WebSync Component.

To establish a RTC Connection you need a non-P2P communcation to do the Handshake first. With this Handshake all neccessary information is transmitted, and icelink can try to reach the other peer. We used Microsoft SignalR for that since it is a serverside-javascript which can push messages to connected clients.

1.this is part of the handshake

2.Signaling via SignalR (e.g.)

SYNT4X
  • 210
  • 2
  • 15
  • You said _With this Handshake all neccessary information is transmitted_ , so which information should be transmit? – Jagruttam Panchal Apr 05 '17 at 11:54
  • When you create an offer, icelink generates some information about the network (IPAdresses, Ids, etc.). This offer you have to send to your Server, a client can then respont to this offer with similar information. – SYNT4X Apr 05 '17 at 12:00
  • Do we need to create offer based on Peer we wants to connect or its independent? – Jagruttam Panchal Apr 05 '17 at 12:03
  • This is up to you. You can dedicate RTC Offers to a specific username. Then the Server can send the offer to the registered device which is used by this user. – SYNT4X Apr 05 '17 at 12:06
  • This might be useful [Icelink docs](http://docs.frozenmountain.com/icelink2/index.html#class=icelink-diagrams-signalling) – SYNT4X Apr 05 '17 at 12:13
  • In documentation(https://docs.frozenmountain.com/icelink3/gettingstarted/Signalling.html) they said that _Peer-to-peer links will be created automatically to peers that join the same channel_. So chat is only possible with channel mechanism? – Jagruttam Panchal Apr 05 '17 at 12:13
  • May I have personal WhatsApp number? – Jagruttam Panchal Apr 05 '17 at 12:15
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/139970/discussion-between-jagruttam-panchal-and-norman-schutt). – Jagruttam Panchal Apr 05 '17 at 12:15
  • I think that WebSync does create links to peers, but this will not happen if you use an alternative signaling mechanism. As I said, I didn´t use WebSync. – SYNT4X Apr 05 '17 at 12:24
  • Thank you so much Friend! :) – Jagruttam Panchal Apr 05 '17 at 12:35
  • Friend please help me. I am helpless as I can't find help anywhere. – Jagruttam Panchal Apr 07 '17 at 09:55
0

I followed their example and achieved the same thing as you are intending to. You need to handle call making on the server-side and somehow communicate the session id to another user . as simple as that.

Amir Hajiha
  • 836
  • 8
  • 20
  • 1
    I found another SDK. And its too better than IceLink and also provides best quality for calling. [CometChat] (https://www.cometchat.com/) – Jagruttam Panchal Jul 13 '17 at 13:14