mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
Add JNI for used codecs.
This commit is contained in:
parent
2043ec6a90
commit
e6d835fa74
2 changed files with 21 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue