JNI for setting file to play while on hold.

This commit is contained in:
Guillaume Beraudo 2011-12-01 08:34:21 +01:00
parent 657d19168c
commit 6892c98ccd
2 changed files with 14 additions and 1 deletions

View file

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

View file

@ -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);
}