[Android] Update PlaybackState position to MediaSession

Wan Zhou git at videolan.org
Wed Dec 6 14:33:17 CET 2017


vlc-android | branch: 2.5.x | Wan Zhou <wanz at nvidia.com> | Mon Dec  4 11:45:11 2017 +0100| [1bc136a2ba68de868755b378ac62c524d96e23d0] | committer: Geoffrey Métais

Update PlaybackState position to MediaSession

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
(cherry picked from commit 6a77ee75ec9cecdad090394e49f34fb0dc294d04)

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

 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