From a965003a9d2db8217a238a4e4971651e7e903df7 Mon Sep 17 00:00:00 2001 From: Koen J Date: Tue, 26 Nov 2024 18:33:25 +0100 Subject: [PATCH] Fix gray line in video player. Thank you @michael-oberpriller --- .../java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt b/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt index 76a8a0f7..5285e99f 100644 --- a/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt +++ b/app/src/main/java/com/futo/platformplayer/views/video/FutoVideoPlayer.kt @@ -602,6 +602,7 @@ class FutoVideoPlayer : FutoVideoPlayerBase { val lp = background.layoutParams as ConstraintLayout.LayoutParams; lp.bottomMargin = 0; background.layoutParams = lp; + _videoView.setBackgroundColor(Color.parseColor("#FF000000")) gestureControl.hideControls(); //videoControlsBar.visibility = View.GONE; @@ -615,6 +616,7 @@ class FutoVideoPlayer : FutoVideoPlayerBase { val lp = background.layoutParams as ConstraintLayout.LayoutParams; lp.bottomMargin = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 6.0f, Resources.getSystem().displayMetrics).toInt(); background.layoutParams = lp; + _videoView.setBackgroundColor(Color.parseColor("#00000000")) gestureControl.hideControls(); //videoControlsBar.visibility = View.VISIBLE;