[Android] Pause playback on TV, to hold 'now playing' card

Geoffrey Métais git at videolan.org
Mon Oct 2 11:58:57 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct  2 11:46:03 2017 +0200| [b5f80ea4a8c0e8125b6c15e48e088965d4f5c680] | committer: Geoffrey Métais

Pause playback on TV, to hold 'now playing' card

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

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

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 0c7baa415..7520ae528 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -963,7 +963,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mRateHasChanged = mSavedRate != 1.0f;
 
         mService.setRate(1.0f, false);
-        mService.stop();
+        if (AndroidDevices.isAndroidTv)
+            mService.pause();
+        else
+            mService.stop();
     }
 
     private void cleanUI() {



More information about the Android mailing list