[Android] VideoPlayer: requestVisibleBehind only for tv
Thomas Guillem
git at videolan.org
Thu Sep 3 17:45:37 CEST 2015
vlc-ports/android | branch: data-binding | Thomas Guillem <thomas at gllm.fr> | Wed Sep 2 19:17:08 2015 +0200| [f5c069ca8cae28de738d853dc97b15250e22c296] | committer: Geoffrey Métais
VideoPlayer: requestVisibleBehind only for tv
Video was not stopped when screen was turned off because of this.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f5c069ca8cae28de738d853dc97b15250e22c296
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
1 file changed, 1 insertion(+), 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 dcc94a4..3428bf5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -544,7 +544,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
/* Stop the earliest possible to avoid vout error */
if (isFinishing())
stopPlayback();
- else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
+ else if (BuildConfig.tv && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
requestVisibleBehind(true);
}
More information about the Android
mailing list