Show buffering when loading videos

This commit is contained in:
Vitor Pamplona
2024-09-26 10:39:12 -04:00
parent fd2637ff42
commit 620285596d

View File

@@ -755,6 +755,7 @@ private fun RenderVideoPlayer(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT,
) )
setShowBuffering(PlayerView.SHOW_BUFFERING_ALWAYS)
setBackgroundColor(Color.Transparent.toArgb()) setBackgroundColor(Color.Transparent.toArgb())
setShutterBackgroundColor(Color.Transparent.toArgb()) setShutterBackgroundColor(Color.Transparent.toArgb())
controllerAutoShow = false controllerAutoShow = false