[Android] Track Information Broadcast
Geoffrey Métais
git at videolan.org
Tue Jul 26 10:58:42 CEST 2016
vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul 25 16:14:39 2016 +0200| [3c1c419d83bab5b1a881ea1cf3c276f6ceb14222] | committer: Geoffrey Métais
Track Information Broadcast
> https://code.videolan.org/videolan/vlc-android/commit/3c1c419d83bab5b1a881ea1cf3c276f6ceb14222
---
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 56c8a10..7b2e550 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -786,6 +786,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
if (updateWidget)
updateWidget();
updateMetadata();
+ broadcastMetadata();
}
private void executeUpdateProgress() {
@@ -1322,6 +1323,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