mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
add isVideoSupported java binding
This commit is contained in:
parent
92cfc41bf4
commit
f03a9b38dd
3 changed files with 19 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue