Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
43472557
Commit
43472557
authored
Mar 30, 2015
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose getChapterDescription method
parent
1d9eb49c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
libvlc/jni/libvlcjni.c
libvlc/jni/libvlcjni.c
+15
-0
libvlc/src/org/videolan/libvlc/LibVLC.java
libvlc/src/org/videolan/libvlc/LibVLC.java
+1
-0
No files found.
libvlc/jni/libvlcjni.c
View file @
43472557
...
...
@@ -783,6 +783,21 @@ jint Java_org_videolan_libvlc_LibVLC_getChapter(JNIEnv *env, jobject thiz)
return
-
1
;
}
jstring
Java_org_videolan_libvlc_LibVLC_getChapterDescription
(
JNIEnv
*
env
,
jobject
thiz
,
jint
title
)
{
libvlc_media_player_t
*
mp
=
getMediaPlayer
(
env
,
thiz
);
libvlc_track_description_t
*
description
;
jstring
string
=
NULL
;
if
(
!
mp
)
return
NULL
;
description
=
libvlc_video_get_chapter_description
(
mp
,
title
);
if
(
description
)
{
string
=
(
*
env
)
->
NewStringUTF
(
env
,
description
->
psz_name
);
free
(
description
);
}
return
string
;
}
void
Java_org_videolan_libvlc_LibVLC_setChapter
(
JNIEnv
*
env
,
jobject
thiz
,
jint
chapter
)
{
libvlc_media_player_t
*
mp
=
getMediaPlayer
(
env
,
thiz
);
...
...
libvlc/src/org/videolan/libvlc/LibVLC.java
View file @
43472557
...
...
@@ -697,6 +697,7 @@ public class LibVLC {
public
native
int
getChapterCountForTitle
(
int
title
);
public
native
int
getChapterCount
();
public
native
int
getChapter
();
public
native
String
getChapterDescription
(
int
title
);
public
native
int
previousChapter
();
public
native
int
nextChapter
();
public
native
void
setChapter
(
int
chapter
);
...
...
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