[Android] Add appendMedia function to MediaUtils

Geoffrey Métais git at videolan.org
Mon Dec 21 17:21:59 CET 2015


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 18 15:28:21 2015 +0100| [187a8014aa17a6249d273617781443fb2d09ba4b] | committer: Geoffrey Métais

Add appendMedia function to MediaUtils

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

 vlc-android/src/org/videolan/vlc/media/MediaUtils.java | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/media/MediaUtils.java b/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
index 8214345..662c611 100644
--- a/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
+++ b/vlc-android/src/org/videolan/vlc/media/MediaUtils.java
@@ -32,6 +32,17 @@ public class MediaUtils {
         LocalBroadcastManager.getInstance(VLCApplication.getAppContext()).sendBroadcast(intent);
     }
 
+    public static void appendMedia(final Context context, final MediaWrapper media){
+        if (media == null)
+            return;
+        new DialogCallback(context, new DialogCallback.Runnable() {
+                @Override
+                public void run(PlaybackService service) {
+                    service.append(media);
+                }
+        });
+    }
+
     public static void openMedia(final Context context, final MediaWrapper media){
         if (media == null)
             return;



More information about the Android mailing list