diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc index 6c79fe09e..dda287d9a 100644 --- a/coreapi/linphonecore_jni.cc +++ b/coreapi/linphonecore_jni.cc @@ -5101,6 +5101,16 @@ extern "C" jintArray Java_org_linphone_core_LinphoneCallParamsImpl_getReceivedVi return arr; } +extern "C" jfloat Java_org_linphone_core_LinphoneCallParamsImpl_getSentFramerate(JNIEnv *env, jobject thiz, jlong lcp) { + const LinphoneCallParams *params = (LinphoneCallParams *) lcp; + return (jfloat)linphone_call_params_get_sent_framerate(params); +} + +extern "C" jfloat Java_org_linphone_core_LinphoneCallParamsImpl_getReceivedFramerate(JNIEnv *env, jobject thiz, jlong lcp) { + const LinphoneCallParams *params = (LinphoneCallParams *) lcp; + return (jfloat)linphone_call_params_get_received_framerate(params); +} + JNIEXPORT jint JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_getAudioDirection(JNIEnv *env, jobject thiz, jlong ptr) { return (jint)linphone_call_params_get_audio_direction((LinphoneCallParams *)ptr); } diff --git a/java/common/org/linphone/core/LinphoneCallParams.java b/java/common/org/linphone/core/LinphoneCallParams.java index 2f2220053..d8ec6607c 100644 --- a/java/common/org/linphone/core/LinphoneCallParams.java +++ b/java/common/org/linphone/core/LinphoneCallParams.java @@ -236,4 +236,16 @@ public interface LinphoneCallParams { * @param dir The video stream direction associated with this call params. **/ void setVideoDirection(MediaDirection dir); + + /** + * Gets the FPS sent in a video call. + * @return the fps + */ + float getSentFramerate(); + + /** + * Gets the FPS received in a video call. + * @return the fps + */ + float getReceivedFramerate(); } diff --git a/java/impl/org/linphone/core/LinphoneCallParamsImpl.java b/java/impl/org/linphone/core/LinphoneCallParamsImpl.java index 3fc57257f..affe01203 100644 --- a/java/impl/org/linphone/core/LinphoneCallParamsImpl.java +++ b/java/impl/org/linphone/core/LinphoneCallParamsImpl.java @@ -245,4 +245,16 @@ public class LinphoneCallParamsImpl implements LinphoneCallParams { public void setVideoDirection(MediaDirection direction) { setVideoDirection(nativePtr, direction.mValue); } + + private native float getSentFramerate(long nativePtr); + @Override + public float getSentFramerate() { + return getSentFramerate(nativePtr); + } + + private native float getReceivedFramerate(long nativePtr); + @Override + public float getReceivedFramerate() { + return getReceivedFramerate(nativePtr); + } }