[Android] Resume streams when playing again

Nicolas Pomepuy git at videolan.org
Fri Jun 25 04:36:47 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jun 24 08:00:17 2021 +0200| [7e153d93f4209396ba86c8c10d901691472a495a] | committer: Nicolas Pomepuy

Resume streams when playing again

Fixes #1303

> https://code.videolan.org/videolan/vlc-android/commit/7e153d93f4209396ba86c8c10d901691472a495a
---

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 4dc561d45..b07581c26 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -694,7 +694,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
             }
             savedTime <= 0L -> when {
                 mw.time > 0L -> mw.time
-                mw.type == MediaWrapper.TYPE_VIDEO || mw.isPodcast -> withContext(Dispatchers.IO) { medialibrary.findMedia(mw).getMetaLong(MediaWrapper.META_PROGRESS) }
+                mw.type == MediaWrapper.TYPE_VIDEO || mw.isPodcast || mw.type == MediaWrapper.TYPE_STREAM -> withContext(Dispatchers.IO) { medialibrary.findMedia(mw).getMetaLong(MediaWrapper.META_PROGRESS) }
                 else -> 0L
             }
             else -> savedTime



More information about the Android mailing list