[Android] Update PlaybackState position to MediaSession
Wan Zhou
git at videolan.org
Mon Dec 4 15:04:17 CET 2017
vlc-android | branch: master | Wan Zhou <wanz at nvidia.com> | Mon Dec 4 11:45:11 2017 +0100| [6a77ee75ec9cecdad090394e49f34fb0dc294d04] | committer: Geoffrey Métais
Update PlaybackState position to MediaSession
Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
> https://code.videolan.org/videolan/vlc-android/commit/6a77ee75ec9cecdad090394e49f34fb0dc294d04
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 5cdc5e1d7..5889de707 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -703,6 +703,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
break;
case MediaPlayer.Event.PositionChanged:
updateWidgetPosition(event.getPositionChanged());
+ publishState();
break;
case MediaPlayer.Event.Vout:
break;
More information about the Android
mailing list