如何在Android和iOS设备之间实现实时语音聊天?

我们需要在
Android和iOS设备之间实现实时语音聊天.

它已经在像Viber这样的应用程序中完成.

我们应该怎么做呢?

最佳答案 您正在寻找的是SIP

The Session Initiation Protocol (SIP) is a signaling communications
protocol, widely used for controlling multimedia communication
sessions such as voice and video calls over Internet Protocol (IP)
networks.

Android提供android.net.sip包……

Provides access to Session Initiation Protocol (SIP) functionality,
such as making and answering VOIP calls using SIP.

If you want a demo, please have a look at the documentation

原始来源:VOIP on Android libraries or sample code

Android的另一个lib:
https://code.google.com/p/csipsimple/
http://www.linphone.org/
http://mjsip.org/mjua.html
http://www.doubango.org/

  

对于iOS,您可以使用PJSIP

PJSIP is a free and open source multimedia communication library
written in C language implementing standard based protocols such as
SIP, SDP, RTP, STUN, TURN, and ICE. It combines signaling protocol
(SIP) with rich multimedia framework and NAT traversal functionality
into high level API that is portable and suitable for almost any type
of systems ranging from desktops, embedded systems, to mobile
handsets.

iOS的另一个lib:
http://www.linphone.org/
http://www.pjsip.org/
http://sofia-sip.sourceforge.net/development.html
http://savannah.nongnu.org/projects/exosip/

原始来源:How to implement VoIP + SIP in iPhone?

点赞