[Android] LibVLC: Media: add Event.getParsedStatus()

Thomas Guillem git at videolan.org
Tue May 24 11:41:48 CEST 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue May 24 11:33:55 2016 +0200| [dd179fe936c0731042206c1ae1306176ea1465d1] | committer: Thomas Guillem

LibVLC: Media: add Event.getParsedStatus()

> https://code.videolan.org/videolan/vlc-android/commit/dd179fe936c0731042206c1ae1306176ea1465d1
---

 libvlc/src/org/videolan/libvlc/Media.java | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/libvlc/src/org/videolan/libvlc/Media.java b/libvlc/src/org/videolan/libvlc/Media.java
index c168a73..c878fb9 100644
--- a/libvlc/src/org/videolan/libvlc/Media.java
+++ b/libvlc/src/org/videolan/libvlc/Media.java
@@ -51,6 +51,14 @@ public class Media extends VLCObject<Media.Event> {
         public int getMetaId() {
             return (int) arg1;
         }
+
+        /**
+         * Get the ParsedStatus in case of {@link Event#ParsedChanged} event
+         * @return {@link Media.ParsedStatus}
+         */
+        public int getParsedStatus() {
+            return (int) arg1;
+        }
     }
 
     public interface EventListener extends VLCEvent.Listener<Media.Event> {}
@@ -125,6 +133,15 @@ public class Media extends VLCObject<Media.Event> {
         public static final int DoInteract   = 0x08;
     }
 
+    /*
+     * see libvlc_media_parsed_status_t
+     */
+    public static class ParsedStatus {
+        public static final int Skipped = 1;
+        public static final int Failed = 2;
+        public static final int Done = 3;
+    }
+
     /**
      * see libvlc_media_track_t
      */



More information about the Android mailing list