[Android] Update media length on LengthChanged event
Geoffrey Métais
git at videolan.org
Thu Feb 8 15:44:11 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 8 15:40:37 2018 +0100| [12259dbdbca4b9183926afec1412087fe89c3ad0] | committer: Geoffrey Métais
Update media length on LengthChanged event
> https://code.videolan.org/videolan/vlc-android/commit/12259dbdbca4b9183926afec1412087fe89c3ad0
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 +++
1 file changed, 3 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 da0a8f088..d8ba6dbb3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1605,6 +1605,9 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
case MediaPlayer.Event.TimeChanged:
mProgress.set((int) event.getTimeChanged());
break;
+ case MediaPlayer.Event.LengthChanged:
+ mMediaLength.set(event.getLengthChanged());
+ break;
case MediaPlayer.Event.Vout:
updateNavStatus();
if (mMenuIdx == -1)
More information about the Android
mailing list