mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
add LinphoneCore.setNortpTimeout() java wrapper
This commit is contained in:
parent
24cf297628
commit
07ecd09829
3 changed files with 45 additions and 5 deletions
|
|
@ -6570,4 +6570,23 @@ JNIEXPORT jint JNICALL Java_org_linphone_core_LinphoneCoreImpl_getSipTransportTi
|
|||
return linphone_core_get_sip_transport_timeout((LinphoneCore*)pcore);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_linphone_core_LinphoneCoreImpl
|
||||
* Method: setNortpTimeout
|
||||
* Signature: (JI)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCoreImpl_setNortpTimeout(JNIEnv *env, jobject obj, jlong core, jint timeout){
|
||||
linphone_core_set_nortp_timeout((LinphoneCore*)core, timeout);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_linphone_core_LinphoneCoreImpl
|
||||
* Method: getNortpTimeout
|
||||
* Signature: (J)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_org_linphone_core_LinphoneCoreImpl_getNortpTimeout(JNIEnv *env, jobject obj, jlong core){
|
||||
return linphone_core_get_nortp_timeout((LinphoneCore*)core);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2220,4 +2220,15 @@ public interface LinphoneCore {
|
|||
**/
|
||||
public int getHttpProxyPort();
|
||||
|
||||
/*
|
||||
* Set the nortp timeout (timeout after which call is closed if no RTP or RTCP packets are received).
|
||||
*/
|
||||
public void setNortpTimeout(int seconds);
|
||||
|
||||
/**
|
||||
* Get the nortp timeout.
|
||||
* @return
|
||||
*/
|
||||
public int getNortpTimeout();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1111,7 +1111,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native void setSipDscp(long nativePtr, int dscp);
|
||||
@Override
|
||||
public synchronized void setSipDscp(int dscp) {
|
||||
setSipDscp(nativePtr,dscp);
|
||||
setSipDscp(nativePtr, dscp);
|
||||
}
|
||||
|
||||
private native int getSipDscp(long nativePtr);
|
||||
|
|
@ -1276,7 +1276,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native void setMtu(long nativePtr, int mtu);
|
||||
@Override
|
||||
public synchronized void setMtu(int mtu) {
|
||||
setMtu(nativePtr,mtu);
|
||||
setMtu(nativePtr, mtu);
|
||||
}
|
||||
private native int getMtu(long nativePtr);
|
||||
@Override
|
||||
|
|
@ -1285,7 +1285,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
}
|
||||
@Override
|
||||
public synchronized void enableSdp200Ack(boolean enable) {
|
||||
enableSdp200Ack(nativePtr,enable);
|
||||
enableSdp200Ack(nativePtr, enable);
|
||||
}
|
||||
@Override
|
||||
public synchronized boolean isSdp200AckEnabled() {
|
||||
|
|
@ -1340,7 +1340,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
|
||||
@Override
|
||||
public synchronized void enableAdaptiveRateControl(boolean enable) {
|
||||
enableAdaptiveRateControl(nativePtr,enable);
|
||||
enableAdaptiveRateControl(nativePtr, enable);
|
||||
|
||||
}
|
||||
@Override
|
||||
|
|
@ -1423,7 +1423,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native void setPreferredFramerate(long nativePtr, float fps);
|
||||
@Override
|
||||
public void setPreferredFramerate(float fps) {
|
||||
setPreferredFramerate(nativePtr,fps);
|
||||
setPreferredFramerate(nativePtr, fps);
|
||||
}
|
||||
private native float getPreferredFramerate(long nativePtr);
|
||||
@Override
|
||||
|
|
@ -1578,5 +1578,15 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public int getSipTransportTimeout(){
|
||||
return getSipTransportTimeout(nativePtr);
|
||||
}
|
||||
private native void setNortpTimeout(long nativePtr, int timeout);
|
||||
@Override
|
||||
public void setNortpTimeout(int timeout){
|
||||
setNortpTimeout(nativePtr, timeout);
|
||||
}
|
||||
|
||||
private native int getNortpTimeout(long nativePtr);
|
||||
@Override
|
||||
public int getNortpTimeout(){
|
||||
return getNortpTimeout(nativePtr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue