Add getRemoteUserAgent() to the JNI.

This commit is contained in:
Ghislain MARY 2012-12-04 14:04:10 +01:00
parent 3c4bd90ba3
commit d7cf616e07
3 changed files with 16 additions and 0 deletions

View file

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

View file

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

View 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) {