[Android] Continue playback when player is still visible
Geoffrey Métais
git at videolan.org
Thu Feb 16 18:22:42 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 16 17:42:36 2017 +0100| [80f6d0c52dcefb8ef2b5a17ddb2bb104baaf204d] | committer: Geoffrey Métais
Continue playback when player is still visible
> https://code.videolan.org/videolan/vlc-android/commit/80f6d0c52dcefb8ef2b5a17ddb2bb104baaf204d
---
.../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 7 +------
1 file changed, 1 insertion(+), 6 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 ad46bbb..d8a876d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -585,16 +585,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mSize.setOnClickListener(null);
/* Stop the earliest possible to avoid vout error */
- if (!isInPictureInPictureMode() && (isFinishing() || !requestVisibleBehind(true)))
+ if (!isInPictureInPictureMode() && (isFinishing() || (AndroidDevices.isAndroidTv() && !requestVisibleBehind(true))))
stopPlayback();
}
@Override
- public boolean requestVisibleBehind(boolean visible) {
- return AndroidDevices.isAndroidTv() && super.requestVisibleBehind(visible);
- }
-
- @Override
public void onVisibleBehindCanceled() {
super.onVisibleBehindCanceled();
stopPlayback();
More information about the Android
mailing list