Linux Video Player Surface
A composable function that renders a video player surface using GStreamer with offscreen rendering.
This function creates a video rendering area using a Compose Canvas to draw video frames that are rendered offscreen by GStreamer. This approach avoids the rendering issues that can occur when using SwingPanel, especially with overlapping UI elements.
Parameters
The state object that encapsulates the GStreamer player logic, including playback control, timeline management, and video frames.
An optional Modifier for customizing the layout and appearance of the composable container. Defaults to an empty Modifier.
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.
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.
Whether this surface is already being displayed in a fullscreen window.