简体   繁体   English

Android Native Sip堆栈中的AudioCodecs

[英]AudioCodecs in Android Native Sip stack

Code from android.net.sip.SipAudioCall: 来自android.net.sip.SipAudioCall的代码:

  for (AudioCodec codec : AudioCodec.getCodecs()) {
                media.setRtpPayload(codec.type, codec.rtpmap, codec.fmtp);
            }

Does it mean that native android sip stack uses not only g711(pcmu/a), but also GSM? 这是否意味着本地android sip堆栈不仅使用g711(pcmu / a),还使用GSM?

If "Yes" - can I set not all codecs, only those that I want? 如果为“是”-我可以设置所有编解码器吗?

Please refer this link for supported Audio codecs in Android 请参考此链接以获取Android中受支持的音频编解码器

http://developer.android.com/reference/android/net/rtp/AudioCodec.html http://developer.android.com/reference/android/net/rtp/AudioCodec.html

can I set not all codecs, only those that I want? 我可以不设置所有编解码器,仅设置所需的编解码器吗?

Yes you can, even you can set this option in Application side. 是的,您可以,即使您可以在应用程序端设置此选项。 please refer some open source project like Sipdroid for better understanding. 请参考一些开源项目,例如Sipdroid,以获得更好的理解。 Sipdroid uses external Sip Stack library not native one. Sipdroid使用外部Sip Stack库而不是本机库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM