Commit d7cf616e authored by Ghislain MARY's avatar Ghislain MARY

Add getRemoteUserAgent() to the JNI.

parent 3c4bd90b
......@@ -1488,6 +1488,12 @@ extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getRemoteAddress( JNIEn
return (jlong)linphone_call_get_remote_address((LinphoneCall*)ptr);
}
extern "C" jstring Java_org_linphone_core_LinphoneCallImpl_get_remoteUserAgent(JNIEnv *env, jobject thiz, jlong ptr) {
LinphoneCall *call = (LinphoneCall *)ptr;
jstring jvalue = env->NewStringUTF(linphone_call_get_remote_user_agent(call));
return jvalue;
}
extern "C" jint Java_org_linphone_core_LinphoneCallImpl_getState( JNIEnv* env
,jobject thiz
,jlong ptr) {
......
......@@ -268,6 +268,11 @@ public interface LinphoneCall {
boolean isInConference();
float getPlayVolume();
/**
* Obtain the remote user agent string.
*/
String getRemoteUserAgent();
/**
* Take a photo of currently received video and write it into a jpeg file.
......
......@@ -174,6 +174,11 @@ class LinphoneCallImpl implements LinphoneCall {
public float getPlayVolume() {
return getPlayVolume(nativePtr);
}
private native String getRemoteUserAgent(long nativePtr);
public String getRemoteUserAgent() {
return getRemoteUserAgent(nativePtr);
}
private native void takeSnapshot(long nativePtr, String path);
public void takeSnapshot(String path) {
......
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