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
Ewout ter Hoeven
VLC-Android
Commits
ce2f0ad6
Commit
ce2f0ad6
authored
Aug 22, 2012
by
Edward Wang
Committed by
Jean-Baptiste Kempf
Aug 24, 2012
Browse files
jni: Add previous() and next()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
35d7b8bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
vlc-android/jni/libvlcjni.c
View file @
ce2f0ad6
...
...
@@ -830,6 +830,20 @@ void Java_org_videolan_vlc_LibVLC_stop(JNIEnv *env, jobject thiz)
libvlc_media_list_player_stop
(
mp
);
}
void
Java_org_videolan_vlc_LibVLC_previous
(
JNIEnv
*
env
,
jobject
thiz
)
{
libvlc_media_list_player_t
*
mp
=
getMediaListPlayer
(
env
,
thiz
);
if
(
mp
)
libvlc_media_list_player_previous
(
mp
);
}
void
Java_org_videolan_vlc_LibVLC_next
(
JNIEnv
*
env
,
jobject
thiz
)
{
libvlc_media_list_player_t
*
mp
=
getMediaListPlayer
(
env
,
thiz
);
if
(
mp
)
libvlc_media_list_player_next
(
mp
);
}
jint
Java_org_videolan_vlc_LibVLC_getVolume
(
JNIEnv
*
env
,
jobject
thiz
)
{
libvlc_media_player_t
*
mp
=
getMediaPlayer
(
env
,
thiz
);
...
...
vlc-android/src/org/videolan/vlc/LibVLC.java
View file @
ce2f0ad6
...
...
@@ -348,6 +348,16 @@ public class LibVLC {
*/
public
native
void
stop
();
/**
* Play the previous media (if any) in the media list
*/
public
native
void
previous
();
/**
* Play the next media (if any) in the media list
*/
public
native
void
next
();
/**
* Gets volume as integer
*/
...
...
Write
Preview
Supports
Markdown
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