}
//CallParams
+extern "C" jboolean Java_org_linphone_core_LinphoneCallParamsImpl_isLowBandwidthEnabled(JNIEnv *env, jobject thiz, jlong cp) {
+ return (jboolean) linphone_call_params_low_bandwidth_enabled((LinphoneCallParams *)cp);
+}
extern "C" void Java_org_linphone_core_LinphoneCallParamsImpl_enableLowBandwidth(JNIEnv *env, jobject thiz, jlong cp, jboolean enable) {
linphone_call_params_enable_low_bandwidth((LinphoneCallParams *)cp, enable);
* that it is achievable by the codec selected after SDP handshake. Video is automatically disabled.
**/
void enableLowBandwidth(boolean enable);
+
+ /**
+ * Use to know if this call has been configured in low bandwidth mode.
+ * <br> When enabled, this param may transform a call request with video in audio only mode.
+ * @return true if low bandwidth has been configured/detected
+ */
+ boolean isLowBandwidthEnabled();
}
private native long getUsedVideoCodec(long nativePtr);
private native void destroy(long nativePtr);
private native void enableLowBandwidth(long nativePtr, boolean enable);
+ private native void isLowBandwidthEnabled(long nativePtr);
public boolean getVideoEnabled() {
return getVideoEnabled(nativePtr);
public void enableLowBandwidth(boolean enable) {
enableLowBandwidth(nativePtr, enable);
}
+
+ public boolean isLowBandwidthEnabled() {
+ return isLowBandwidthEnabled(nativePtr);
+ }
}