[Android] LibVLC: remove previous() and next()
Edward Wang
git at videolan.org
Mon Oct 28 04:14:42 CET 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Oct 27 22:06:22 2013 -0400| [19274ba0883cb9719f2ba6ac619e0adc79749189] | committer: Edward Wang
LibVLC: remove previous() and next()
Playlist management is now done by AudioService. Remove obsolete stubs in LibVLC.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=19274ba0883cb9719f2ba6ac619e0adc79749189
---
vlc-android/jni/libvlcjni.c | 23 -----------------------
vlc-android/src/org/videolan/libvlc/LibVLC.java | 10 ----------
2 files changed, 33 deletions(-)
diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index 5991683..40e4ca1 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -472,29 +472,6 @@ void Java_org_videolan_libvlc_LibVLC_stop(JNIEnv *env, jobject thiz)
libvlc_media_player_stop(mp);
}
-void Java_org_videolan_libvlc_LibVLC_previous(JNIEnv *env, jobject thiz)
-{
- int current_position = getInt(env, thiz, "mInternalMediaPlayerIndex");
-
- if(current_position-1 >= 0) {
- setInt(env, thiz, "mInternalMediaPlayerIndex", (jint)(current_position-1));
- create_player_and_play(env, thiz,
- getLong(env, thiz, "mLibVlcInstance"), current_position-1);
- }
-}
-
-void Java_org_videolan_libvlc_LibVLC_next(JNIEnv *env, jobject thiz)
-{
- libvlc_media_list_t* p_mlist = getMediaList(env, thiz);
- int current_position = getInt(env, thiz, "mInternalMediaPlayerIndex");
-
- if(current_position+1 < libvlc_media_list_count(p_mlist)) {
- setInt(env, thiz, "mInternalMediaPlayerIndex", (jint)(current_position+1));
- create_player_and_play(env, thiz,
- getLong(env, thiz, "mLibVlcInstance"), current_position+1);
- }
-}
-
jint Java_org_videolan_libvlc_LibVLC_getVolume(JNIEnv *env, jobject thiz)
{
libvlc_media_player_t *mp = getMediaPlayer(env, thiz);
diff --git a/vlc-android/src/org/videolan/libvlc/LibVLC.java b/vlc-android/src/org/videolan/libvlc/LibVLC.java
index c57b8e4..00d14d9 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVLC.java
@@ -486,16 +486,6 @@ 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
*/
public native int getVolume();
More information about the Android
mailing list