如何实现Android和iOS设备之间的实时语音聊天? [英] How to implement realtime voice chat between Android and iOS devices?

查看:862
本文介绍了如何实现Android和iOS设备之间的实时语音聊天?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要实现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,它是便携式的,几乎适用于任何类型的   系统从台式机,嵌入式系统,移动   手机。

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

这篇关于如何实现Android和iOS设备之间的实时语音聊天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆