Playback over http always starts from the end
How to reproduce:
- Playback a stream over http
- Exit before coming to the end
- Then playback again. It starts from the end and exit immediately.
The 'continue playback' logic doesn't handle the case properly. The issue can be workaround by
diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index ce8d5291c..a879a86fe 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -752,10 +752,12 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
mw.removeFlags(MediaWrapper.MEDIA_FROM_START)
0L
}
+ /*
savedTime <= 0L -> when {
mw.time > 0L -> mw.time
else -> 0L
}
+ */
else -> savedTime
}
savedTime = 0L
I don't get it why setting savedTime to mw.time.