Commit 3603a92c authored by Simon Morlat's avatar Simon Morlat
Browse files

add jitter buffer settings

parent 5ada6d74
......@@ -3412,6 +3412,14 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setCpuCountNative(JNIEnv
ms_set_cpu_count(count);
}
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setAudioJittcomp(JNIEnv *env, jobject thiz, jlong lc, jint value) {
linphone_core_set_audio_jittcomp((LinphoneCore *)lc, value);
}
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setVideoJittcomp(JNIEnv *env, jobject thiz, jlong lc, jint value) {
linphone_core_set_video_jittcomp((LinphoneCore *)lc, value);
}
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setAudioPort(JNIEnv *env, jobject thiz, jlong lc, jint port) {
linphone_core_set_audio_port((LinphoneCore *)lc, port);
}
......
......@@ -1623,4 +1623,21 @@ public interface LinphoneCore {
* Typical use is to stop ringing when the user requests to ignore the call.
**/
public void stopRinging();
/**
* Set audio jitter buffer size in milliseconds.
* A value of zero disables the jitter buffer.
* The new value is taken into account immediately for all running or pending calls.
* @param value the jitter buffer size in milliseconds.
*/
public void setAudioJittcomp(int value);
/**
* Set video jitter buffer size in milliseconds.
* A value of zero disables the jitter buffer.
* The new value is taken into account immediately for all running or pending calls.
* @param value the jitter buffer size in milliseconds.
*/
public void setVideoJittcomp(int value);
}
......@@ -1200,13 +1200,24 @@ class LinphoneCoreImpl implements LinphoneCore {
return getPayloadTypeBitrate(nativePtr, ((PayloadTypeImpl)pt).nativePtr);
}
@Override
public void enableAdaptiveRateControl(boolean enable) {
public synchronized void enableAdaptiveRateControl(boolean enable) {
enableAdaptiveRateControl(nativePtr,enable);
}
@Override
public boolean isAdaptiveRateControlEnabled() {
public synchronized boolean isAdaptiveRateControlEnabled() {
return isAdaptiveRateControlEnabled(nativePtr);
}
private native void setAudioJittcomp(long ptr, int value);
@Override
public synchronized void setAudioJittcomp(int value) {
setAudioJittcomp(nativePtr,value);
}
private native void setVideoJittcomp(long ptr, int value);
@Override
public synchronized void setVideoJittcomp(int value) {
setVideoJittcomp(nativePtr,value);
}
}
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