VoIP通话在android中开发
我想在android上制作一个类似于SipDroid的应用程序。我查看了来自developer.android.com 的SipDemo 和android.net.sip 包。我的问题是,当您拨打/接听电话时,如何让音频流在发送/播放给用户之前对其进行加密/解密?有关于这个的教程吗?我知道我需要一个 sip 帐户和带有 android 2.3 的真实设备。我想在发送 AudioStream 之前获取它(用于加密),并在向用户播放之前接收 AudioStream (用于解密)。
伙计们请帮助我。 提前致谢 :)
I would like to make an application similar to SipDroid on android. I took a look at SipDemo from developer.android.com and at the android.net.sip package. My question is, when you make/receive a call, how can you get the audio stream to encrypt/decrypt it before is being sent/played back to the user? Is there a tutorial about this somewhere? I am aware that I need a sip account and real devices with android 2.3. I would like to get the AudioStream before it's sent (for encryption) and to receive the AudioStream before it gets played-back to the user(for decryption).
Guys please help me .
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Android 2.3 API,不可能“获取”autio 流来对其进行加密/解密,因为 android.net.rtp 包不对“普通”开发者开放。该功能仅从 android 3.1 开始开放。
为了在较低的 Android API 版本中运行加密,请查看 CSipSimple 项目。它是开源的,并且完全实现了您的要求。然而,由于该应用程序并不是很简单,因此进入它有点复杂。但请尝试一下。
With the Android 2.3 API it is not possilbe to "get" to the autio stream to en/decrypt it, because the android.net.rtp package is not open to the "normal" developers. This only opened from android 3.1 onwards.
In order to get an encryption running in lower android API versions have a look at the CSipSimple project. It is open source and fully implements what you're asking for. However, it is kind of complicated to get into it since the app isn't very simple. But give it a try.