[Android] TV: Save media meta on video playback end

Geoffrey Métais git at videolan.org
Fri Oct 6 16:39:35 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Oct  6 16:39:00 2017 +0200| [6978446693114e3fb049320455a8282484b1c292] | committer: Geoffrey Métais

TV: Save media meta on video playback end

> https://code.videolan.org/videolan/vlc-android/commit/6978446693114e3fb049320455a8282484b1c292
---

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

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 2f2c8ebb0..75779f12e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -966,9 +966,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mRateHasChanged = mSavedRate != 1.0f;
 
         mService.setRate(1.0f, false);
-        if (AndroidDevices.isAndroidTv)
+        if (AndroidDevices.isAndroidTv) {
             mService.pause();
-        else
+            mService.saveMediaMeta();
+        } else
             mService.stop();
     }
 



More information about the Android mailing list