I found at
http://developer.android.com/reference/android/net/rtp/AudioCodec.html that the native stack has 3 codecs, G711, AMR and GSM
How I can set the priority for the codecs used ?
Is any way to interface with this option, can be added to the Library ?
Thank You!
More info:
public class
AudioCodec
extends
Object
java.lang.Object
↳android.net.rtp.AudioCodec
Class Overview
This class defines a collection of audio codecs to be used with
AudioStreams. Their parameters are designed to be exchanged using Session Description Protocol (SDP). Most of the values listed here can be found in RFC 3551, while others are described in separated standards.
Few simple configurations are defined as public static instances for the convenience of direct uses. More complicated ones could be obtained using
getCodec(int, String, String). For example, one can use the following snippet to create a mode-1-only AMR codec.
AudioCodec codec =AudioCodec.getCodec(100,"AMR/8000","mode-set=1");
See Also
Summary
Fields
public static final
AudioCodecAMRAdaptive Multi-Rate narrowband audio codec, also known as AMR or AMR-NB.
public static final
AudioCodecGSMGSM Full-Rate audio codec, also known as GSM-FR, GSM 06.10, GSM, or simply FR.
public static final
AudioCodecGSM_EFRGSM Enhanced Full-Rate audio codec, also known as GSM-EFR, GSM 06.60, or simply EFR.
public static final
AudioCodecPCMAG.711 a-law audio codec.
public static final
AudioCodecPCMUG.711 u-law audio codec.
public final
StringfmtpThe format parameters to be used in the corresponding SDP attribute.
public final
StringrtpmapThe encoding parameters to be used in the corresponding SDP attribute.
public final int
typeThe RTP payload type of the encoding.