Commit 6892c98c authored by Guillaume Beraudo's avatar Guillaume Beraudo
Browse files

JNI for setting file to play while on hold.

parent 657d1916
......@@ -732,6 +732,14 @@ extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isVideoEnabled(JNIEn
,jlong lc) {
return linphone_core_video_enabled((LinphoneCore*)lc);
}
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setPlayFile(JNIEnv* env
,jobject thiz
,jlong lc
,jstring jpath) {
const char* path = jpath?env->GetStringUTFChars(jpath, NULL):NULL;
linphone_core_set_play_file((LinphoneCore*)lc,path);
if (path) env->ReleaseStringUTFChars(jpath, path);
}
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setRing(JNIEnv* env
,jobject thiz
,jlong lc
......
......@@ -699,8 +699,13 @@ public interface LinphoneCore {
*/
void setMediaEncryptionMandatory(boolean yesno);
/**
* @return if media encryption is required for ougtoing calls
* @return if media encryption is required for outgoing calls
*/
boolean isMediaEncryptionMandatory();
/**
* @param path path to music file played to remote side when on hold.
*/
void setPlayFile(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