[Android] Update player when nowplaying is changed
Geoffrey Métais
git at videolan.org
Tue Jan 26 14:35:53 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 26 14:32:36 2016 +0100| [75672abc0e89dcc9ce437fb8087bfb1a43ef3f27] | committer: Geoffrey Métais
Update player when nowplaying is changed
> https://code.videolan.org/videolan/vlc-android/commit/75672abc0e89dcc9ce437fb8087bfb1a43ef3f27
---
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 9d36920..3a53494 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -540,6 +540,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
/* Update Meta if file is already parsed */
if (!mParsed)
break;
+ if (event.getMetaId() == Media.Meta.NowPlaying)
+ executeUpdate();
Log.i(TAG, "Media.Event.MetaChanged: " + event.getMetaId());
case Media.Event.ParsedChanged:
More information about the Android
mailing list