mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
add jitter buffer settings
This commit is contained in:
parent
5ada6d7444
commit
3603a92ce4
3 changed files with 38 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue