[Android] EventHandler: add new libvlc events

Thomas Guillem git at videolan.org
Tue Mar 17 19:24:22 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 17 19:21:40 2015 +0100| [86124fbcf4cb00f436c0ac4ce9d99b8ccf9178cd] | committer: Thomas Guillem

EventHandler: add new libvlc events

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=86124fbcf4cb00f436c0ac4ce9d99b8ccf9178cd
---

 libvlc/jni/libvlcjni.c                           |    4 +++-
 libvlc/src/org/videolan/libvlc/EventHandler.java |    4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/libvlc/jni/libvlcjni.c b/libvlc/jni/libvlcjni.c
index 698eaac..b6e39e5 100644
--- a/libvlc/jni/libvlcjni.c
+++ b/libvlc/jni/libvlcjni.c
@@ -552,7 +552,9 @@ void Java_org_videolan_libvlc_LibVLC_playMRL(JNIEnv *env, jobject thiz,
         libvlc_MediaPlayerVout,
         libvlc_MediaPlayerPositionChanged,
         libvlc_MediaPlayerTimeChanged,
-        libvlc_MediaPlayerEncounteredError
+        libvlc_MediaPlayerEncounteredError,
+        libvlc_MediaPlayerESAdded,
+        libvlc_MediaPlayerESDeleted,
     };
     for(int i = 0; i < (sizeof(mp_events) / sizeof(*mp_events)); i++)
         libvlc_event_attach(ev, mp_events[i], vlc_event_callback, myVm);
diff --git a/libvlc/src/org/videolan/libvlc/EventHandler.java b/libvlc/src/org/videolan/libvlc/EventHandler.java
index 6242b2d..0d87f7e 100644
--- a/libvlc/src/org/videolan/libvlc/EventHandler.java
+++ b/libvlc/src/org/videolan/libvlc/EventHandler.java
@@ -58,6 +58,10 @@ public class EventHandler {
     //public static final int MediaPlayerSnapshotTaken        = 0x110;
     //public static final int MediaPlayerLengthChanged        = 0x111;
     public static final int MediaPlayerVout                   = 0x112;
+    //public static final int MediaPlayerScrambledChanged     = 0x113;
+    public static final int MediaPlayerESAdded                = 0x114;
+    public static final int MediaPlayerESDeleted              = 0x115;
+    //public static final int MediaPlayerESSelected           = 0x116;
 
     //public static final int MediaListItemAdded              = 0x200;
     //public static final int MediaListWillAddItem            = 0x201;



More information about the Android mailing list