LinuxVideoPlayerSurface

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

A composable function that renders a video player surface using a native GStreamer player via JNI with offscreen rendering.

Parameters

playerState

The state object that encapsulates the native GStreamer player logic.

modifier

An optional Modifier for customizing the layout and appearance.

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.

isInFullscreenWindow

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