[Android] [PATCH] Video : consume fromStart option after the video start

Alexandre Perraud 4leyx4ndre at gmail.com
Mon Jul 28 15:28:32 CEST 2014


Fix "the restart from the start again" bug when the screen goes off
---
 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 ++
 1 file changed, 2 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 67e551a..78dacc0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1956,6 +1956,8 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                 // in media library
                 if(media.getTime() > 0 && !fromStart)
                     mLibVLC.setTime(media.getTime());
+                //consume fromStart option after use
+                getIntent().putExtra("fromStart",false);
 
                 mLastAudioTrack = media.getAudioTrack();
                 mLastSpuTrack = media.getSpuTrack();
-- 
1.9.1



More information about the Android mailing list