Чат, правки
This commit is contained in:
@@ -89,21 +89,22 @@ fun AppVideoPlayer(
|
||||
factory = {
|
||||
PlayerView(it).apply {
|
||||
player = exoPlayer
|
||||
this.useController = false // Use our custom UI
|
||||
this.resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT
|
||||
this.useController = false // We use our own UI if needed
|
||||
resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT
|
||||
setBackgroundColor(android.graphics.Color.BLACK)
|
||||
}
|
||||
},
|
||||
modifier = Modifier.fillMaxSize().clickable(
|
||||
interactionSource = remember { MutableInteractionSource() },
|
||||
indication = null
|
||||
indication = null,
|
||||
enabled = useController // Only clickable if we have controls
|
||||
) {
|
||||
isControlsVisible = !isControlsVisible
|
||||
}
|
||||
)
|
||||
|
||||
AnimatedVisibility(
|
||||
visible = isControlsVisible,
|
||||
visible = isControlsVisible && useController,
|
||||
enter = fadeIn(),
|
||||
exit = fadeOut()
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user