ExoPlayerView
fun ExoPlayerView(player: Player, modifier: Modifier = Modifier, useController: Boolean = true, controllerAutoShow: Boolean = true, showNextButton: Boolean = true, showPreviousButton: Boolean = true, showBuffering: @PlayerView.ShowBuffering Int = PlayerView.SHOW_BUFFERING_NEVER, resizeMode: @AspectRatioFrameLayout.ResizeMode Int = AspectRatioFrameLayout.RESIZE_MODE_FIT, errorMessageProvider: ErrorMessageProvider<PlaybackException>? = null, fullScreenListener: PlayerView.FullscreenButtonClickListener? = null, controllerVisibilityListener: PlayerView.ControllerVisibilityListener? = null, @ColorInt shutterBackgroundColor: Int = 0)
Composable PlayerView provided by Media3 library
Parameters
player
The player to attach to the PlayerView
modifier
The modifier to be applied to the layout.
useController
true to display controls
controllerAutoShow
showNextButton
showPreviousButton
showBuffering
resizeMode
The resize mode for PlayerView
errorMessageProvider
The errorMessageProvider
fullScreenListener
controllerVisibilityListener
shutterBackgroundColor