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
fb9d2beb
Commit
fb9d2beb
authored
Jun 27, 2012
by
Sylvain Berfini
🐮
Browse files
takeSnapshot and zoomVideo methods exported throught JNI
parent
ace189f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+13
-0
java/common/org/linphone/core/LinphoneCall.java
java/common/org/linphone/core/LinphoneCall.java
+10
-0
No files found.
coreapi/linphonecore_jni.cc
View file @
fb9d2beb
...
...
@@ -1199,6 +1199,19 @@ extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getCallLog( JNIEnv* en
return
(
jlong
)
linphone_call_get_call_log
((
LinphoneCall
*
)
ptr
);
}
extern
"C"
void
Java_org_linphone_core_LinphoneCallImpl_takeSnapshot
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
ptr
,
jstring
path
)
{
const
char
*
filePath
=
path
!=
NULL
?
env
->
GetStringUTFChars
(
path
,
NULL
)
:
NULL
;
linphone_call_take_video_snapshot
((
LinphoneCall
*
)
ptr
,
filePath
);
}
extern
"C"
void
Java_org_linphone_core_LinphoneCallImpl_zoomVideo
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
ptr
,
jfloat
zoomFactor
,
jfloat
cx
,
jfloat
cy
)
{
linphone_call_zoom_video
((
LinphoneCall
*
)
ptr
,
zoomFactor
,
cx
,
cy
);
}
extern
"C"
jboolean
Java_org_linphone_core_LinphoneCallImpl_isIncoming
(
JNIEnv
*
env
,
jobject
thiz
,
jlong
ptr
)
{
...
...
java/common/org/linphone/core/LinphoneCall.java
View file @
fb9d2beb
...
...
@@ -244,4 +244,14 @@ public interface LinphoneCall {
boolean
isInConference
();
float
getPlayVolume
();
/**
* Take a photo of currently received video and write it into a jpeg file.
*/
void
takeSnapshot
(
String
path
);
/**
* Scale the video by factor, and center it using cx,cy point
*/
void
zoomVideo
(
float
factor
,
float
cx
,
float
cy
);
}
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