[Android] Track Information Broadcast

Geoffrey Métais git at videolan.org
Sun Jul 31 14:56:27 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul 25 16:14:39 2016 +0200| [eb97d267b1ee90ab9aff1fc044fa8e109458cd1a] | committer: Geoffrey Métais

Track Information Broadcast

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 6f9c449..f6eae4e 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -774,6 +774,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
         if (updateWidget)
             updateWidget();
         updateMetadata();
+        broadcastMetadata();
     }
 
     private void executeUpdateProgress() {
@@ -1314,6 +1315,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
         broadcast.putExtra("album", media.getAlbum());
         broadcast.putExtra("duration", media.getLength());
         broadcast.putExtra("playing", playing);
+        broadcast.putExtra("package", "org.videolan.vlc");
 
         sendBroadcast(broadcast);
     }



More information about the Android mailing list