[Android] Fix regression preventing the media session to get the right time after a seek

Nicolas Pomepuy git at videolan.org
Tue Oct 5 05:16:21 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Oct  4 07:45:18 2021 +0200| [5dfd1c181e81478b31ad77f2edfe3291e55992e6] | committer: Nicolas Pomepuy

Fix regression preventing the media session to get the right time after a seek

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

 application/vlc-android/src/org/videolan/vlc/PlaybackService.kt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 5d0f17b55..d25020c65 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -718,6 +718,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner {
 
     fun setTime(time:Long, fast:Boolean = false) {
         playlistManager.player.setTime(time, fast)
+        publishState(time)
     }
 
     fun getTime() = playlistManager.player.getCurrentTime()



More information about the Android mailing list