Commit 094eea00 authored by jehan's avatar jehan
Browse files

Merge commit 'f03a9b38'

parents e400e389 f03a9b38
......@@ -1147,6 +1147,14 @@ extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isVideoEnabled(JNIEn
,jlong lc) {
return (jboolean)linphone_core_video_enabled((LinphoneCore*)lc);
}
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isVideoSupported(JNIEnv* env
,jobject thiz
,jlong lc) {
return (jboolean)linphone_core_video_supported((LinphoneCore*)lc);
}
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setPlayFile(JNIEnv* env
,jobject thiz
,jlong lc
......
......@@ -738,6 +738,13 @@ public interface LinphoneCore {
**/
int getVideoDevice();
/**
* Teturns true if the underlying sdk support video
*
* */
boolean isVideoSupported();
/**
* Enables video globally.
*
......
......@@ -86,6 +86,7 @@ class LinphoneCoreImpl implements LinphoneCore {
private native long getOrCreateChatRoom(long nativePtr,String to);
private native void enableVideo(long nativePtr,boolean vcap_enabled,boolean display_enabled);
private native boolean isVideoEnabled(long nativePtr);
private native boolean isVideoSupported(long nativePtr);
private native void setFirewallPolicy(long nativePtr, int enum_value);
private native int getFirewallPolicy(long nativePtr);
private native void setStunServer(long nativePtr, String stun_server);
......@@ -405,6 +406,9 @@ class LinphoneCoreImpl implements LinphoneCore {
public synchronized boolean isVideoEnabled() {
return isVideoEnabled(nativePtr);
}
public synchronized boolean isVideoSupported() {
return isVideoSupported(nativePtr);
}
public synchronized FirewallPolicy getFirewallPolicy() {
return FirewallPolicy.fromInt(getFirewallPolicy(nativePtr));
}
......
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