Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
fbe5350f
Commit
fbe5350f
authored
Jul 04, 2014
by
flx42
Browse files
LibVLC: provide access to libvlc functions for titles/chapters handling
parent
3c621789
Changes
2
Hide whitespace changes
Inline
Side-by-side
vlc-android/jni/libvlcjni.c
View file @
fbe5350f
...
...
@@ -539,3 +539,26 @@ jstring Java_org_videolan_libvlc_LibVLC_changeset(JNIEnv* env, jobject thiz)
{
return
(
*
env
)
->
NewStringUTF
(
env
,
libvlc_get_changeset
());
}
jint
Java_org_videolan_libvlc_LibVLC_getTitle
(
JNIEnv
*
env
,
jobject
thiz
)
{
libvlc_media_player_t
*
mp
=
getMediaPlayer
(
env
,
thiz
);
if
(
mp
)
return
libvlc_media_player_get_title
(
mp
);
return
-
1
;
}
void
Java_org_videolan_libvlc_LibVLC_setTitle
(
JNIEnv
*
env
,
jobject
thiz
,
jint
title
)
{
libvlc_media_player_t
*
mp
=
getMediaPlayer
(
env
,
thiz
);
if
(
mp
)
libvlc_media_player_set_title
(
mp
,
title
);
}
jint
Java_org_videolan_libvlc_LibVLC_getChapterCountForTitle
(
JNIEnv
*
env
,
jobject
thiz
,
jint
title
)
{
libvlc_media_player_t
*
mp
=
getMediaPlayer
(
env
,
thiz
);
if
(
mp
)
return
libvlc_media_player_get_chapter_count_for_title
(
mp
,
title
);
return
-
1
;
}
vlc-android/src/org/videolan/libvlc/LibVLC.java
View file @
fbe5350f
...
...
@@ -710,4 +710,9 @@ public class LibVLC {
public
String
getCachePath
()
{
return
mCachePath
;
}
public
native
int
getTitle
();
public
native
void
setTitle
(
int
title
);
public
native
int
getChapterCountForTitle
(
int
title
);
}
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