mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
implement enable video call java binding
This commit is contained in:
parent
7db8fc8c96
commit
57a2bde8a2
4 changed files with 35 additions and 8 deletions
|
|
@ -562,6 +562,20 @@ extern "C" long Java_org_linphone_core_LinphoneCoreImpl_createChatRoom(JNIEnv*
|
|||
return (long)lResult;
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_enableVideo(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
,jboolean vcap_enabled
|
||||
,jboolean display_enabled) {
|
||||
linphone_core_enable_video((LinphoneCore*)lc, vcap_enabled,display_enabled);
|
||||
|
||||
}
|
||||
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isVideoEnabled(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc) {
|
||||
return linphone_core_video_enabled((LinphoneCore*)lc);
|
||||
}
|
||||
|
||||
//ProxyConfig
|
||||
|
||||
extern "C" jlong Java_org_linphone_core_LinphoneProxyConfigImpl_newLinphoneProxyConfig(JNIEnv* env,jobject thiz) {
|
||||
|
|
|
|||
|
|
@ -372,6 +372,24 @@ public interface LinphoneCore {
|
|||
*/
|
||||
LinphoneChatRoom createChatRoom(String to);
|
||||
|
||||
public void setVideoWindow(VideoWindow w);
|
||||
public void setPreviewWindow(VideoWindow w);
|
||||
public void setVideoWindow(Object w);
|
||||
public void setPreviewWindow(Object w);
|
||||
/**
|
||||
* Enables video globally.
|
||||
*
|
||||
*
|
||||
* This function does not have any effect during calls. It just indicates #LinphoneCore to
|
||||
* initiate future calls with video or not. The two boolean parameters indicate in which
|
||||
* direction video is enabled. Setting both to false disables video entirely.
|
||||
*
|
||||
* @param vcap_enabled indicates whether video capture is enabled
|
||||
* @param display_enabled indicates whether video display should be shown
|
||||
*
|
||||
**/
|
||||
void enableVideo(boolean vcap_enabled, boolean display_enabled);
|
||||
/**
|
||||
* Returns TRUE if video is enabled, FALSE otherwise.
|
||||
*
|
||||
***/
|
||||
boolean isVideoEnabled();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
package org.linphone.core;
|
||||
|
||||
public interface VideoWindow {
|
||||
|
||||
}
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit ffacf56718c198cb80a290f7a65975916d8a9b6b
|
||||
Subproject commit e59157a44a7b6aa1f1fa756325047e98c2be3786
|
||||
Loading…
Add table
Reference in a new issue