[Android] Playlist : Start always video from start

Alexandre Perraud git at videolan.org
Fri Dec 23 17:13:49 CET 2016


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Dec 13 17:06:00 2016 +0100| [39b502165c4aac744d85f845579248e06f0f1d3d] | committer: Alexandre Perraud

Playlist : Start always video from start

> https://code.videolan.org/videolan/vlc-android/commit/39b502165c4aac744d85f845579248e06f0f1d3d
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 5fe6977..1b27a98 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2973,6 +2973,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             positionInPlaylist = extras.getInt(PLAY_EXTRA_OPENED_POSITION, -1);
         }
 
+        if (mService.hasPlaylist()) {
+            fromStart = true;
+        }
+
         if (intent.hasExtra(PLAY_EXTRA_SUBTITLES_LOCATION))
             mSubtitleSelectedFiles.add(extras.getString(PLAY_EXTRA_SUBTITLES_LOCATION));
         if (intent.hasExtra(PLAY_EXTRA_ITEM_TITLE))



More information about the Android mailing list