WindowsVideoPlayerSurface

@Composable
fun WindowsVideoPlayerSurface(playerState: WindowsVideoPlayerState, modifier: Modifier = Modifier, contentScale: ContentScale = ContentScale.Fit, overlay: @Composable () -> Unit = {}, isInFullscreenWindow: Boolean = false)

A composable function that provides a surface for rendering video frames within the Windows video player. It adjusts to size changes and ensures the video is displayed properly with respect to its aspect ratio.

Parameters

playerState

The state of the Windows video player, used to manage video playback and rendering.

modifier

The modifier to be used to adjust the layout or styling of the composable.

contentScale

Controls how the video content should be scaled inside the surface. This affects how the video is displayed when its dimensions don't match the surface dimensions.

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.

isInFullscreenWindow

Whether this surface is already being displayed in a fullscreen window.