mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
Add JNI to set static picture.
This commit is contained in:
parent
722a616f6a
commit
eb27f4c3c9
3 changed files with 13 additions and 1 deletions
|
|
@ -2165,6 +2165,12 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setVideoPolicy(JNIEnv *e
|
|||
linphone_core_set_video_policy((LinphoneCore *)lc, &vpol);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setStaticPicture(JNIEnv *env, jobject thiz, jlong lc, jstring path) {
|
||||
const char *cpath = env->GetStringUTFChars(path, NULL);
|
||||
linphone_core_set_static_picture((LinphoneCore *)lc, cpath);
|
||||
env->ReleaseStringUTFChars(path, cpath);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setCpuCountNative(JNIEnv *env, jobject thiz, jint count) {
|
||||
ms_set_cpu_count(count);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -786,7 +786,9 @@ public interface LinphoneCore {
|
|||
LinphoneProxyConfig[] getProxyConfigList();
|
||||
|
||||
void setVideoPolicy(boolean autoInitiate, boolean autoAccept);
|
||||
|
||||
|
||||
void setStaticPicture(String path);
|
||||
|
||||
void setUserAgent(String name, String version);
|
||||
|
||||
void setCpuCount(int count);
|
||||
|
|
|
|||
|
|
@ -754,6 +754,10 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public synchronized void setVideoPolicy(boolean autoInitiate, boolean autoAccept) {
|
||||
setVideoPolicy(nativePtr, autoInitiate, autoAccept);
|
||||
}
|
||||
private native void setStaticPicture(long nativePtr, String path);
|
||||
public void setStaticPicture(String path) {
|
||||
setStaticPicture(nativePtr, path);
|
||||
}
|
||||
private native void setUserAgent(long nativePtr, String name, String version);
|
||||
@Override
|
||||
public void setUserAgent(String name, String version) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue