Skip to content
Snippets Groups Projects
Commit 4fbb3253 authored by Koen's avatar Koen
Browse files

Added fix for video player not filling height properly for audio only in a playlist.

parent e1d3b95f
No related branches found
No related tags found
No related merge requests found
......@@ -270,7 +270,7 @@ class FutoVideoPlayer : FutoVideoPlayerBase {
if (drawable != null) {
_videoView.defaultArtwork = drawable;
_videoView.useArtwork = true;
fitHeight();
fitOrFill(isFullScreen);
} else {
_videoView.defaultArtwork = null;
_videoView.useArtwork = false;
......@@ -311,7 +311,7 @@ class FutoVideoPlayer : FutoVideoPlayerBase {
gestureControl.hideControls();
//videoControlsBar.visibility = View.GONE;
_videoView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT;
fillHeight();
_videoControls_fullscreen.show();
videoControls.hide();
}
......@@ -323,16 +323,25 @@ class FutoVideoPlayer : FutoVideoPlayerBase {
gestureControl.hideControls();
//videoControlsBar.visibility = View.VISIBLE;
_videoView.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_ZOOM;
fitHeight();
videoControls.show();
_videoControls_fullscreen.hide();
}
fitOrFill(fullScreen);
gestureControl.setFullscreen(fullScreen);
onToggleFullScreen.emit(fullScreen);
isFullScreen = fullScreen;
}
private fun fitOrFill(fullScreen: Boolean) {
if (fullScreen) {
fillHeight();
} else {
fitHeight();
}
}
fun lockControlsAlpha(locked : Boolean) {
if(locked && _isControlsLocked != locked) {
_isControlsLocked = locked;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment