Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
6892c98c
Commit
6892c98c
authored
Dec 01, 2011
by
Guillaume Beraudo
Browse files
JNI for setting file to play while on hold.
parent
657d1916
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+8
-0
java/common/org/linphone/core/LinphoneCore.java
java/common/org/linphone/core/LinphoneCore.java
+6
-1
No files found.
coreapi/linphonecore_jni.cc
View file @
6892c98c
...
...
@@ -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
...
...
java/common/org/linphone/core/LinphoneCore.java
View file @
6892c98c
...
...
@@ -699,8 +699,13 @@ public interface LinphoneCore {
*/
void
setMediaEncryptionMandatory
(
boolean
yesno
);
/**
* @return if media encryption is required for ou
g
toing calls
* @return if media encryption is required for out
g
oing calls
*/
boolean
isMediaEncryptionMandatory
();
/**
* @param path path to music file played to remote side when on hold.
*/
void
setPlayFile
(
String
path
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment