how to customise AppRTC to receive call

限于喜欢 提交于 2019-12-23 03:23:14

问题


I have integrated AppRTC in my project and I am able to join the WebRTC call in the room of https://apprtc.appspot.com using RoomName

    appClient = ARDAppClient(delegate: self)
    appClient?.createLocalMediaStream()
    appClient?.connectToRoomWithId(String(roomId), options: nil)

I am able to hardcode a RoomName in my app and install the app in two devices A & B and if I make a call from both the devices at same time in A & B then I am able to successfully have a WebRTC call between them.

Now I'd like to do a real VOIP call that is make a call from my app in device A and receive the call at my app in device B.

AFAIK I have to do SIGNALING part right here to connect to the app in device B from device A.

Any help is highly appreciated !


回答1:


What you need is a signaling server. Both peers connect to it and they can negotiate a room name through it before starting a call. When a room name is decided, both peers can simply connect to that room and they will be able to see each other.

There are a few signaling servers designed for WebRTC available online or you can make your own, it's not that complex. Really all it needs to do is register clients and act as a mailman between them.



来源:https://stackoverflow.com/questions/36754583/how-to-customise-apprtc-to-receive-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!