Video

@Composable
fun Video(state: VideoState, modifier: Modifier = Modifier, file: File? = null, autoplay: Boolean = false, graphicsOffload: GraphicsOffloadEnabled = GraphicsOffloadEnabled.DISABLED)

Creates a org.gnome.gtk.Video that displays a video whose stream is controlled by a VideoState.

Parameters

state

The VideoState that controls the video's media stream.

modifier

Compose Modifier for layout and styling.

file

The video file.

autoplay

Whether the video automatically plays once it's loaded.

graphicsOffload

Offloads the graphics which bypasses gsk rendering by passing the content of its child directly to the compositor.


@Composable
fun Video(modifier: Modifier = Modifier, file: File? = null, autoplay: Boolean = false, graphicsOffload: GraphicsOffloadEnabled = GraphicsOffloadEnabled.DISABLED, loop: Boolean = false)

Creates a org.gnome.gtk.Video that displays a video.

Parameters

modifier

Compose Modifier for layout and styling.

file

The video file.

autoplay

Whether the video automatically plays once it's loaded.

graphicsOffload

Offloads the graphics which bypasses gsk rendering by passing the content of its child directly to the compositor.

loop

Whether the video restarts when it reaches the end.