PlayerView
fun PlayerView(player: Player, modifier: Modifier = Modifier, playerViewConfig: PlayerViewConfig = PlayerViewConfig(), customMessageHandler: CustomMessageHandler? = null, fullscreenHandler: FullscreenHandler? = null, pictureInPictureHandler: PictureInPictureHandler? = null, isUiVisible: Boolean = playerViewConfig.uiConfig !is UiConfig.Disabled)
Compose wrapper around the Android AndroidPlayerView.
The player is caller-owned. The wrapper detaches it before destroying the underlying AndroidPlayerView, so neither the underlying AndroidPlayerView nor the composable wrapper call Player.destroy.
isUiVisible controls only the Bitmovin Player UI controls overlay of the underlying AndroidPlayerView. It does not hide this composable, the underlying Android view, or the video surface. Use the modifier or conditional composition when the whole view should be hidden or removed.
If PlayerViewConfig.uiConfig is UiConfig.Disabled, no UI controls are created and isUiVisible has no visible effect. The default value is true when UI controls are configured and false when they are disabled.