add isVideoSupported java binding

This commit is contained in:
Jehan Monnier 2013-08-26 16:57:44 +02:00
parent 92cfc41bf4
commit f03a9b38dd
3 changed files with 19 additions and 0 deletions

View file

@ -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

View file

@ -738,6 +738,13 @@ public interface LinphoneCore {
**/
int getVideoDevice();
/**
* Teturns true if the underlying sdk support video
*
* */
boolean isVideoSupported();
/**
* Enables video globally.
*

View file

@ -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));
}