openFullscreenWindow

@Composable
fun openFullscreenWindow(playerState: WindowsVideoPlayerState, contentScale: ContentScale = androidx.compose.ui.layout.ContentScale.Fit, overlay: @Composable () -> Unit = {})

Opens a fullscreen window for the video player. This function is called when the user toggles fullscreen mode.

Parameters

playerState

The player state to use in the fullscreen window

contentScale

Controls how the video content should be scaled inside the surface.

overlay

Optional composable content to be displayed on top of the video surface. This can be used to add custom controls, information, or any UI elements.