Commit e6d835fa authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add JNI for used codecs.

parent 2043ec6a
......@@ -946,6 +946,14 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setMediaEncryption(JNIEn
linphone_core_set_media_encryption((LinphoneCore*)lc,(LinphoneMediaEncryption)menc);
}
extern "C" long Java_org_linphone_core_LinphoneCallParamsImpl_getUsedAudioCodec(JNIEnv *env, jobject thiz, jlong cp) {
return (long)linphone_call_params_get_used_audio_codec((LinphoneCallParams *)cp);
}
extern "C" long Java_org_linphone_core_LinphoneCallParamsImpl_getUsedVideoCodec(JNIEnv *env, jobject thiz, jlong cp) {
return (long)linphone_call_params_get_used_video_codec((LinphoneCallParams *)cp);
}
extern "C" int Java_org_linphone_core_LinphoneCallParamsImpl_getMediaEncryption(JNIEnv* env
,jobject thiz
,jlong cp
......
......@@ -34,7 +34,7 @@ public interface LinphoneCallParams {
* @param value 0 to disable limitation
*/
void setAudioBandwidth(int value);
/**
* return selected media encryption
* @return MediaEncryption.None MediaEncryption.SRTP or MediaEncryption.ZRTP
......@@ -45,5 +45,16 @@ public interface LinphoneCallParams {
* @params menc: MediaEncryption.None, MediaEncryption.SRTP or MediaEncryption.ZRTP
*/
void setMediaEnctyption(MediaEncryption menc);
/**
* Get the currently used audio codec
* @return PayloadType or null
*/
PayloadType getUsedAudioCodec();
/**
* Get the currently used video codec
* @return PayloadType or null
*/
PayloadType getUsedVideoCodec();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment