mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Add getRemoteUserAgent() to the JNI.
This commit is contained in:
parent
3c4bd90ba3
commit
d7cf616e07
3 changed files with 16 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue