linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Linphone Android - Enabling Audio Codecs


From: J Alex Antony Vijay
Subject: Re: [Linphone-developers] Linphone Android - Enabling Audio Codecs
Date: Mon, 25 Apr 2016 09:12:05 +0530

Hi,

    Use below code to enable/disable codecs:

String []codes = {"speex", "speex", "opus", "ilbc", "pcmu", "pcma", "silk", "silk", "gsm", "g722"};
int []bitrates = {8000, 16000, 48000, 8000, 8000, 8000, 16000, 24000, 8000, 8000, 8000};
for (int i = 0; i < codes.length; i++) {
PayloadType type = linphoneCore.findPayloadType(codes[i], bitrates[i]);
if (type != null) {
try {
linphoneCore.enablePayloadType(type, true); // true to enable. false to disable
} catch (LinphoneCoreException e) {}
}
}


On Sun, Apr 24, 2016 at 6:26 PM, Leland Green <address@hidden> wrote:
Hi Leonard,

I guarantee the Linphone developers know how. :) I know how in Python. (And quite possibly in C.) Which language are you using? 

(Then, I'm sure that someone knowledgeable in that language will reply.)

Best regards,
Leland...



 The Glow-In-The-Dark Man 
http://www.theglowinthedarkman.com (coming soon in 2016!)


On Sun, Apr 24, 2016 at 12:01 AM, Leonard Fodje <address@hidden> wrote:
Dear Linphone Developers,

Does anyone know how to enable the audio codecs programmatically?

I am not able to do so like in previous versions of linphone.

Thanks for your help,

Leonard

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




--

Regards,
J Alex Antony Vijay.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]