Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SIP API media codecs

Tags:

android

codec

sip

I am trying to develop an android application with SIP API (provided in Android 2.3 or higher). I want to know which audio codecs and video codecs does this API supports ? does this API have any tools allowing to configure/choose codecs ? please help me.

like image 996
libhu Avatar asked Apr 20 '26 09:04

libhu


1 Answers

I want to know which audio codecs and video codecs does this API supports?

You can get supported codec list from docs itself, check AudioCodec.

Those are:

  • PCMU
  • PCMA
  • GSM_EFR
  • GSM
  • AMR

does this API have any tools allowing to configure/choose codecs ?

you could use the APIs related to the SIP and RTP. android.net.rtp contains the AudioStream, AudioGroup and AudioCodec classes that are easy to use. The last of these allows you to choose the codec which you want.

You can create codec as given in above link:

AudioCodec codec = AudioCodec.getCodec(100, "AMR/8000", "mode-set=1");

Then you can set this codec to your AudioStream using setCodec(codec) method.

like image 135
uniruddh Avatar answered Apr 22 '26 22:04

uniruddh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!