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

2023-09-05 01:34:43 作者:壹身幹凈味

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

We need to implement realtime voice chat between Android and iOS devices.

它已经像 Viber的应用完成。

我们应该怎样做呢?

推荐答案

您要找的是SIP

的会话发起协议(SIP)是一种信号通信   协议,广泛用于控制多媒体通信   会话,如互联网协议语音和视频电话(IP)   网络。

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 包,它...

Android provides the android.net.sip package which...

提供对会话发起协议(SIP)功能的访问,   如拨打和应答使用SIP VoIP电话。

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

如果你想有一个演示,请看看文档

原文出处: VOIP在Android库或样品$ C $ ç

另一个lib中的Andr​​oid版本: 的https://$c$c.google.com/p/csipsimple/ http://www.linphone.org/ http://mjsip.org/mjua.html http://www.doubango.org/

another lib for Android : https://code.google.com/p/csipsimple/ http://www.linphone.org/ http://mjsip.org/mjua.html http://www.doubango.org/

有关iOS的,您可以使用 PJSIP

For iOS, you can use PJSIP

PJSIP是一个自由和开放源码的多媒体通信库   用C语言编写实施基于标准的协议,如   SIP,SDP,RTP,STUN,TURN和ICE。它结合了信令协议   (SIP)具有丰富的多媒体框架和NAT穿越功能   进入高层次的API,它是便携式的,几乎适用于任何类型的   系统从台式机,嵌入式系统,移动   手机。

Android 7.0 VS iOS 10 谁更高一筹

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.

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

another lib for iOS : http://www.linphone.org/ http://www.pjsip.org/ http://sofia-sip.sourceforge.net/development.html http://savannah.nongnu.org/projects/exosip/

原文出处:如何实现iPhone的VoIP + SIP