kks
kks

Reputation: 11

supported codecs in android

which codecs are supported for audio in android? G711 is supported. But is there any other like G729,...etc?

Upvotes: 1

Views: 4123

Answers (2)

Felipe Vasconcelos
Felipe Vasconcelos

Reputation: 2605

Take a look at: http://developer.android.com/reference/android/media/MediaCodecInfo.html

Have a piece of code which tell's all the avaible codecs (audio and video) in the device.

private List<String> mSupportedCodecs;
private void getSupportedCodecs() {
    int numCodecs = MediaCodecList.getCodecCount();
    mSupportedCodecs = new ArrayList<String>(numCodecs);
    for (int i = 0; i < numCodecs; i++) {
        MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i);
        mSupportedCodecs.add(codecInfo.getName());
    }
}

Upvotes: 1

Sriram
Sriram

Reputation: 10558

Take a look here:

http://developer.android.com/guide/appendix/media-formats.html

Im not sure if G.729 is explicitly available. But it might be used as a module in one of the other codecs that are listed on the page above.
HTH,
Sriram.

Upvotes: 1

Related Questions