// Not listed codecs are automatically will have zero priority
endpoint.changeCodecSettings({
"PCMA/8000/1": 0,
"G722/16000/1": 0, // Zero means to disable the codec.
"iLBC/8000/1": 210,
"speex/8000/1": 0,
"speex/16000/1": 0,
"speex/32000/1": 0
})
NOTE:
On android, if you enter a codec that cannot be found, the app just crashes. I would like to handle the error and pass it up to the JS side, but I still need to figure it out. @datso maybe you can enlighten me, I am new at native dev and appreciate the help.
Added this method to the JS api:
NOTE: On android, if you enter a codec that cannot be found, the app just crashes. I would like to handle the error and pass it up to the JS side, but I still need to figure it out. @datso maybe you can enlighten me, I am new at native dev and appreciate the help.
resolves https://github.com/Carusto/react-native-pjsip/issues/39