mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 09:49:26 +00:00
JNI for setting file to play while on hold.
This commit is contained in:
parent
657d19168c
commit
6892c98ccd
2 changed files with 14 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue