Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set order for audio codec with latest source? #62

Closed
uniruddh opened this issue May 9, 2016 · 5 comments
Closed

How to set order for audio codec with latest source? #62

uniruddh opened this issue May 9, 2016 · 5 comments

Comments

@uniruddh
Copy link

uniruddh commented May 9, 2016

Earlier we had a list to set order/priority of audio codecs in linphonecore.c as following:

static const char *codec_pref_order[]= { "speex", "gsm", "pcmu", "pcma", "H264", "MP4V-ES", "theora", "H263-1998", "H263", "x-snow", NULL, };

I am not able to find codec_pref_order or anything similar in the latest source. Can someone help me to know how I can change codec priority/order?

Thanks.

@bagage
Copy link
Contributor

bagage commented May 26, 2016

You have to enter them in your linphonerc in the desired order. For instance in linphonerc-factory, you can do:

[audio_codec_0]
... opus or anything else

[audio_codec_1]
... something else etc.

@bagage bagage closed this as completed May 26, 2016
@uniruddh
Copy link
Author

Okay thanks. Got it.

@shraddha-patel-1891
Copy link

@Astuter @bagage
how to change the codec priority programmatically?
I tried linphone_core_get_audio_payload_types and linphone_core_set_audio_payload_types the method but not working.
so can you please help me to resolve this issue?

Thanks

@ghost
Copy link

ghost commented Oct 19, 2020

Hi, i have the same issue that you have posted above. Have you figured out any solutions. If so, could you please help me @shraddha-patel-1891

@UrocToutou
Copy link

Hello,
I also have this same problem. Does anyone know the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants