Commit ce2f0ad6 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf
Browse files

jni: Add previous() and next()


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 35d7b8bc
......@@ -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);
......
......@@ -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
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment